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/ */
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
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.