LingxiTeam / new-cookie by RryLee

Add a application deploy timestamp prefix to cookie name for laravel.
1,497
1
2
Package Data
Maintainer Username: RryLee
Package Create Date: 2016-09-10
Package Last Update: 2018-11-15
Language: PHP
License: MIT
Last Refreshed: 2024-12-11 15:24:05
Package Statistics
Total Downloads: 1,497
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

给你的 Cookie 加上部署时间和前缀

Install

composer require lingxi/new-cookie

Build Status StyleCI Latest Stable Version Total Downloads License

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',