lingxi/new-cookie

Add a application deploy timestamp prefix to cookie name for laravel.

v0.0.8 2018-11-15 16:00 UTC

This package is not auto-updated.

Last update: 2024-03-16 16:25:24 UTC


README

给你的 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',