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

1.1.0 2025-07-04 15:46 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.