light-it-labs / lightit-auth-laravel
An optional-feature authentication package for Laravel projects. It layers Google SSO, 2FA, OTP, forgot password and role-permission systems on top of a boilerplate that already owns base authentication, with standardized examples for seamless integration into your projects.
Package info
github.com/Light-it-labs/lightit-auth-laravel
pkg:composer/light-it-labs/lightit-auth-laravel
Fund package maintenance!
Requires
- php: ^8.4
- illuminate/contracts: ^11.0||^12.0||^13.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
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 1.3.0
- 1.2.0
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- dev-feature/CU-86e33aq5b/two-factor-session-login
- dev-chore/CU-86e2xt5tw/remove-dead-tools-and-add-frontend-path
- dev-feature/CU-86e33dwyh/core-write-tools
- dev-feature/CU-86e33aq5b/two-factor-frontend-services
- dev-feature/CU-86e2xt5tw/remove-jwt-driver-v2
- dev-feature/no-task/remove-sanctum-bearer
- dev-feature/CU-86e2xt5tw/google-signin-screen
- dev-feature/CU-86e2xt5tw/passkey-screens
- dev-feature/CU-86e2xt5tw/2fa-account-management-screens
- dev-feature/CU-86e2xt5tw/two-factor-login-screens
- dev-feature/CU-86e2xt5tw/passkey-frontend-wiring
- dev-feature/CU-86e2xt5tw/passkey-frontend-actions
- dev-feature/CU-86e2xt5tw/passkey-frontend-api
- dev-feature/CU-86e2xt5tw/passkey-frontend-types
- dev-feature/CU-86e2xt5tw/passkey-login-endpoints
- dev-feature/CU-86e2xt5tw/passkey-login-wiring
- dev-feature/CU-86e2xt5tw/passkey-foundation
- dev-feature/CU-86e2xt5tw/passkey-login-service
- dev-feature/CU-86e2xt5tw/passkey-registration-endpoints
- dev-feature/CU-86e2xt5tw/passkey-registration-service
- dev-feature/CU-86e2xt5tw/passkey-registration-wiring
- dev-fix/CU-86e2xt5tw/native-login-2fa-injection
- dev-fix/CU-86e2xt5tw/session-based-login
- dev-feature/CU-86e2xt5tw/google-sso-frontend-part3
- dev-feature/CU-86e2xt5tw/google-sso-frontend-part2
- dev-feature/CU-86e31q493/roles-permissions-4-frontend
- dev-feature/CU-86e31q493/roles-permissions-3-current-user-patch
- dev-feature/CU-86e31q493/roles-permissions-2-backend-api
- dev-feature/CU-86e31q493/roles-permissions-1-schema-catalog
- dev-feature/CU-86e2xt5tw/google-sso-frontend
- dev-feature/CU-86e33aq5b/two-factor-frontend-v2
- dev-feature/CU-86e2xt5tw/origin-markers-v2
- dev-chore/CU-86e32ee5q/tsc-in-ci-v2
- dev-integration/screens-and-login-seam
- dev-feature/CU-86e2xt5tw/2fa-login-flow-screens
- dev-fix/CU-86e32edvr/installer-overwrites-v2
- dev-integration/all-features
- dev-feature/CU-86e2xt5tw/restructure-driver-model-v2
- dev-feature/CU-86e2xt5tw/frontend-scaffolding-v2
- dev-feature/CU-86e32edm8/extract-route-wiring-v2
- dev-feature/CU-86e2xt5tw/origin-markers
- dev-feature/CU-86e33aq5b/two-factor-frontend
- dev-feature/CU-86e2xt5tw/restructure-driver-model
- dev-chore/CU-86e32ee5q/tsc-in-ci
- dev-feature/CU-86e32edm8/extract-route-wiring
- dev-fix/CU-86e32edvr/installer-overwrites
- dev-feature/CU-86e2xt5tw/remove-jwt-driver
- dev-feature/CU-86e2xt5tw/fullstack-poc-sanctum-cookie
- dev-feature/CU-86e2ug7za/sanctum-cookie-spa-auth-driver
- dev-chore/no-task/update-gh-actions
- dev-feature/no-task/laravel-13-compatibility
- dev-bugfix/no-task/login-action-not-being-used-in-sso
- 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: 2026-09-25 21:11:24 UTC
README
Laravel Auth Package
Laravel Auth Package adds optional auth features - 2FA, roles and permissions, OTP, forgot password and social login - on top of the Light-it Laravel Boilerplate, which owns the base authentication. 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 walks you through the optional features it can add on top of the boilerplate's own authentication. It no longer configures an authentication driver.
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.