thotam / thotam-auth
Custom Laravel Auth package by ThoTam
0.0.4
2021-05-07 06:50 UTC
Requires
- php: ^7.3|^8.0
- illuminate/console: ^8.0
- illuminate/contracts: ^8.0
- illuminate/support: ^8.0
- laravel/fortify: ^1.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
README
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
Installation
You can install the package via composer:
composer require thotam/thotam-auth
Usage
Public ThotamAuthProvider
php artisan vendor:publish --provider="Thotam\ThotamAuth\ThotamAuthServiceProvider" --force
Public FortifyProvider
php artisan vendor:publish --provider="Laravel\Fortify\FortifyServiceProvider"
Add "phone", "active", "link_at", "link_by" to fillable of User Models Add use SoftDeletes; use Userstamps; to User Models add /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'link_at' => 'datetime', ]; to User Models
Add "App\Providers\FortifyServiceProvider::class" to "config\app.php"
Add CheckAccount Middleware
Add 'CheckAccount' => Thotam\ThotamAuth\Http\Middleware\CheckAccount::Class To App\Http\Kernel.php in $routeMiddleware
Next, you should migrate your database:
php artisan migrate
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email thanhtamtqno1@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.