PHP code example of barchart / laravel-remember-all

1. Go to this page and download the library: Download barchart/laravel-remember-all 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/ */

    

barchart / laravel-remember-all example snippets


'guards' => [
    'web' => [
        'driver' => 'rememberall',
        'provider' => 'users',
        'expire' => 10080, // optional token expiration time, in minutes (7 days is the default)
    ],
],

use Barchart\Laravel\RememberAll\User as Authenticatable;

class User extends Authenticatable
{

}

use Barchart\Laravel\RememberAll\EloquentAuthenticatable as Authenticatable;
use Barchart\Laravel\RememberAll\Contracts\Authenticatable as AuthenticatableContract;

class User extends Model implements AuthenticatableContract
{
    use Authenticatable;
}

php artisan migrate