Skip to content

thotam/thotam-auth

Repository files navigation

Very short description of the package

Latest Version on Packagist Build Status Quality Score Total Downloads

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.