Download the PHP package awema-pl/module-auth without Composer
On this page you can find all versions of the php package awema-pl/module-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download awema-pl/module-auth
More information about awema-pl/module-auth
Files in awema-pl/module-auth
Package module-auth
Short Description Laravel Authentication package with built-in two-factor (Authy) and social authentication (Socialite).
License MIT
Homepage https://github.com/awema-pl/module-auth
Informations about the package module-auth
Authentication
Laravel Authentication package with built-in two-factor (Authy) and social authentication (Socialite).
Table of Contents
- Installation
- Configuration
- Social and two-factor authentication
- Email verification & resetting passwords
- Usage
- Testing
Installation
Via Composer
The package will automatically register itself.
You can publish migrations:
After migrations have been published you can create required db tables by running:
Publish views:
Configuration
Publish config file:
You can disable additional features by commenting them out:
Add new socialite services:
And configure redirect paths:
Social and two-factor authentication
Several .env variables required if additional modules were enabled in config:
If you enabled social and/or two factor authentication add respective traits to User model class:
Email verification & resetting passwords
To use email verification functionality and to reset passwords, add SendsEmailVerification
and SendsPasswordReset
traits:
Usage
Add to routes/web.php:
You can disable registration:
Package will register several routes.
Besides default authentication routes, it will add:
- Socialite routes
'login.social'
'login/{service}/callback'
- Two factor authentication setup routes
'twofactor.index'
'twofactor.store'
'twofactor.destroy'
'twofactor.verify'
- Two factor authentication login routes
'login.twofactor.index'
'login.twofactor.verify'
- Email verification routes
'verification.resend'
'verification.code.verify'
'verification.code'
'verification.verify'
Testing
You can run the tests with:
Contributing
Please see contributing.md for details and a todolist.
Credits
- Galymzhan Begimov
- All Contributors
License
All versions of module-auth with dependencies
guzzlehttp/guzzle Version ^7.0.1
illuminate/support Version ~5|~6|~7|~8|~9
laravel/ui Version ^3.0
laravel/sanctum Version ^2.8