the-3labs-team / laravel-cookie-auth
This package is abandoned and no longer maintained.
No replacement package was suggested.
Laravel Cookie Auth
v1.0.7
2023-02-27 21:55 UTC
Requires
- php: ^8.1|^8.2
- illuminate/contracts: ^9.0|^10.0
- spatie/laravel-package-tools: ^1.13.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
README
A simple middleware for Laravel applications that creates a cookie for logged-in users. Used for simple configuration with FastCGI.
Installation
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"
Usage
In your Kernel.php
add the middleware as follows:
protected $middlewareGroups = [ 'web' => [ \The3LabsTeam\LaravelCookieAuth\LaravelCookieAuth::class, //...
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.