lingxi / new-cookie
Add a application deploy timestamp prefix to cookie name for laravel.
v0.0.8
2018-11-15 16:00 UTC
Requires
- illuminate/support: ^5.0
- lingxi/laravel-deploy: 0.0.*
- symfony/http-foundation: 2.8.* || ^3.0
This package is not auto-updated.
Last update: 2024-10-26 19:53:53 UTC
README
给你的 Cookie 加上部署时间和前缀
Install
composer require lingxi/new-cookie
Config
In app.php config file.
comment
// Illuminate\Cookie\CookieServiceProvider::class,
// 'Cookie' => 'Illuminate\Support\Facades\Cookie',
add
Lingxi\Cookie\CookieServiceProvider::class,
'Cookie' => Lingxi\Cookie\CookieFacade::class,
In session.php
add
'key_prefix' => 'lingxi',