Package Data | |
---|---|
Maintainer Username: | devdojo |
Maintainer Contact: | tony@devdojo.com (Tony Lea) |
Package Create Date: | 2024-04-16 |
Package Last Update: | 2025-07-13 |
Home Page: | https://devdojo.com/auth |
Language: | Blade |
License: | MIT |
Last Refreshed: | 2025-08-25 15:00:04 |
Package Statistics | |
---|---|
Total Downloads: | 40,650 |
Monthly Downloads: | 5,378 |
Daily Downloads: | 197 |
Total Stars: | 605 |
Total Watchers: | 3 |
Total Forks: | 53 |
Total Open Issues: | 22 |
Auth is a plug'n play authentication package for any Laravel application. We have closed issues for this repo and are recommending that anyone who wants to report an issue or make a suggestion to do so here: https://devdojo.com/questions. Additionally, we are open to any kind of Pull Request 😉
Be sure to visit the official documentation at https://devdojo.com/auth/docs
You can install this package into any new Laravel application, or any of the available Laravel Starter Kits.
composer require devdojo/auth
After the package has been installed you'll need to publish the authentication assets, configs, and more:
php artisan vendor:publish --tag=auth:assets
php artisan vendor:publish --tag=auth:config
php artisan vendor:publish --tag=auth:ci
php artisan vendor:publish --tag=auth:migrations
Next, run the migrations:
php artisan migrate
Finally extend the Devdojo User Model:
use Devdojo\Auth\Models\User as AuthUser;
class User extends AuthUser
in your App\Models\User
model.
Now, you're ready to rock! Auth has just been installed and you'll be able to visit the following authentication routes:
You'll also have access to the Two Factor Setup page
When you need to logout, you can visit the Logout route
You can add all the social auth helpers to your user model by including the following Trait:
<?php
namespace App\Models;
use Devdojo\Auth\Traits\HasSocialProviders; // Import the trait
class User extends Devdojo\Auth\Models\User
{
use HasSocialProviders; // Use the trait in the User model
// Existing User model code...
}
The DevDojo Auth package is open-sourced software licensed under the MIT license.