Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This is the repo for the DevDojo Auth package

License

NotificationsYou must be signed in to change notification settings

thedevdojo/auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auth Logo


Build StatusTotal DownloadsLatest Stable VersionLicense

About

Auth is a plug'n play authentication package for anyLaravel application. We have closedissues 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 athttps://devdojo.com/auth/docs

Installation

You can install this package into any new Laravel application, or any of the availableLaravel 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:assetsphp artisan vendor:publish --tag=auth:configphp artisan vendor:publish --tag=auth:ciphp 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 yourApp\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:

  • Login (project.test/auth/login)
  • Register (project.test/auth/register)
  • Forgot Password (project.test/auth/register)
  • Password Reset (project.test/auth/password/reset)
  • Password Reset Token (project.test/auth/password/ReAlLyLoNgPaSsWoRdReSeTtOkEn)
  • Password Confirmation (project.test/auth/password/confirm)
  • Two-Factor Challenge (project.test/auth/two-factor-challenge)

You'll also have access to the Two Factor Setup page

  • Two-Factor Setup (project.test/user/two-factor-authentication)

When you need to logout, you can visit the Logout route

  • Logout Route (project.test/auth/logout)

(Optional) Adding the HasSocialProviders Trait.

You can add all the social auth helpers to your user model by including the following Trait:

<?phpnamespaceApp\Models;useDevdojo\Auth\Traits\HasSocialProviders;// Import the traitclass UserextendsDevdojo\Auth\Models\User{use HasSocialProviders;// Use the trait in the User model// Existing User model code...}

License

The DevDojo Auth package is open-sourced software licensed under theMIT license.


[8]ページ先頭

©2009-2025 Movatter.jp