1. Go to this page and download the library: Download proai/laravel-footprint 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/ */
proai / laravel-footprint example snippets
use ProAI\Footprint\Contracts\HasSessions as HasSessionsContract;
use ProAI\Footprint\HasSessions;
class User extends Authenticatable implements HasSessionsContract
{
use HasSessions;
}
use ProAI\Footprint\Contracts\Sessionable as SessionableContract;
use ProAI\Footprint\Sessionable;
use Illuminate\Database\Eloquent\Model;
class CustomSession extends Model implements SessionableContract
{
use Sessionable;
protected $table = 'user_sessions';
protected $fillable = [
'user_id',
'remember_token',
'remember_issued_at',
'ip_address',
'user_agent',
'last_used_at',
];
}