Skip to content

This installs Laravel sanctum and generates everything needed for authentication

Notifications You must be signed in to change notification settings

charleskoko/sanctum-authentication-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sanctum authentication package

Issues Forks Stars

Installation

Sanctum authentication requires Laravel Sanctum. Before installing this package, you must have installed Laravel sanctum and made all configurations.

Package installation.

composer require charleskoko/sanctum-authentication

Then you have to publish the configuration files of Sanctum authentication package using the command vendor:publish Artisan. The Sanctum configuration file will be placed in the config directory of your application:

php artisan vendor:publish --provider="Charleskoko\SanctumAuthentication\SanctumAuthenticationServiceProvider"

Configuration

In the config file sanctumAuthentication.php of Sanctum authentication package, you can modify the following environment variables:

Variable ROLE
Registration rules Necessary elements and validations rules for the creation of a user
Login rules Required elements and validation rules allowing the user to connect
Login attribute Attribute to check for the user's connection
Api uri Api url

About

This installs Laravel sanctum and generates everything needed for authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages