light-it-labs / lightit-auth-laravel
A comprehensive authentication package for Laravel projects, designed to streamline the implementation of various authentication strategies. This package supports JWT-based authentication, Google SSO, Laravel Sanctum, 2FA, OTP, and role-permission systems with standardized examples for seamless inte
Fund package maintenance!
Light-it Labs
Requires
- php: ^8.4
- illuminate/contracts: ^11.0||^12.0
- php-open-source-saver/jwt-auth: ^2.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9||^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/extension-installer: ^1.3||^2.0
- phpstan/phpstan-deprecation-rules: ^1.1||^2.0
- phpstan/phpstan-phpunit: ^1.3||^2.0
- webgriffe/captainhook: ^2.1
- worksome/coding-style: ^3.2
- dev-main
- 1.1.0
- 1.0.0
- dev-dependabot/github_actions/actions/checkout-5
- dev-dependabot/github_actions/stefanzweifel/git-auto-commit-action-6
- dev-feature/no-task/update-readme-and-terminal
- dev-feature/CU-86dwuz7kp/Extender-api2fasetup-para-incluir-secret-de-2FA
- dev-bugfix/CU-86dwmqz2e/Prevent-500-error-when-trying-to-enable-2FA-for-a-user-without-a-secret-already-set-up
- dev-feature/no-task/update-set-pr-title
- dev-feature/CU-86dwkvcxp/Modificaciones-varias-para-2fa
- dev-feature/CU-86dwkfvm4/Install-Sanctum-without-depending-on-the-boilerplate
- dev-feature/CU-86dwjrpvm/Remove-Flugger-and-use-Laravel-Resources
- dev-feature/CU-86dwgv7kf/Support-Laravel-12
- dev-feature/jwt-login-logout
This package is auto-updated.
Last update: 2025-08-18 18:56:43 UTC
README
Laravel Auth Package
Laravel Auth Package simplifies authentication, authorization, roles and permissions setup for Laravel applications. Supporting the following packages
Contents
Installation
Important
This package is based on and tightly coupled with the Light-it Laravel Boilerplate.
It assumes conventions like:
- Main namespace:
Lightit
- Specific file paths
- Custom exceptions structure
Keep this in mind if you plan to integrate it into a different project.
First, add the repository to your composer.json
:
{ "repositories": [ { "type": "vcs", "url": "https://github.com/Light-it-labs/lightit-auth-laravel.git" } ] }
Then install the package via Composer:
composer require light-it-labs/lightit-auth-laravel
Once installed, run the setup command:
php artisan auth:setup
If you are using Laravel Sail, you can run:
./vendor/bin/sail artisan auth:setup
This command will guide you through the configuration of your authentication driver(s), Two-Factor Authentication (2FA), and/or Role and Permission system.
Changelog
For recent changes, see the CHANGELOG.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.