PHP code example of thotam / thotam-auth

1. Go to this page and download the library: Download thotam/thotam-auth library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

thotam / thotam-auth example snippets


php artisan vendor:publish --provider="Thotam\ThotamAuth\ThotamAuthServiceProvider" --force

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' => Thotam\ThotamAuth\Http\Middleware\CheckAccount::Class To App\Http\Kernel.php in $routeMiddleware

php artisan migrate