A simple middleware for Laravel applications that creates a cookie for logged-in users. Used for simple configuration with FastCGI.
You can install the package via composer:
composer require the-3labs-team/laravel-cookie-auth
You can publish the config file with:
php artisan vendor:publish --tag="laravel-cookie-auth-config"
This is the contents of the published config file:
return [
'cookie_name' => 'skip_cache',
'cookie_value' => true,
'cookie_lifetime' => 5,
];
Optionally, you can publish the views using
php artisan vendor:publish --tag="laravel-cookie-auth-views"
In your Kernel.php
add the middleware as follows:
protected $middlewareGroups = [
'web' => [
\The3LabsTeam\LaravelCookieAuth\LaravelCookieAuth::class,
//...
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.