PHP code example of the-3labs-team / laravel-cookie-auth

1. Go to this page and download the library: Download the-3labs-team/laravel-cookie-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/ */

    

the-3labs-team / laravel-cookie-auth example snippets


return [
    'cookie_name' => 'skip_cache',
    'cookie_value' => true,
    'cookie_lifetime' => 5,
];

protected $middlewareGroups = [
    'web' => [
        \The3LabsTeam\LaravelCookieAuth\LaravelCookieAuth::class,
        //...
bash
php artisan vendor:publish --tag="laravel-cookie-auth-config"
bash
php artisan vendor:publish --tag="laravel-cookie-auth-views"