lingxi/context

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

v0.0.3 2017-06-23 04:01 UTC

This package is not auto-updated.

Last update: 2024-12-16 15:28:53 UTC


README

管理一次请求生命周期中的数据 Build StatusStyleCILatest Stable VersionTotal DownloadsLicense

Install

composer require lingxi/context

Lingxi\Context\ContextServiceProvider::class,

'Context' => Lingxi\Context\ContextFacade::class,

Usage

<?php

Context::set('user', User::find(request('user_id')));

Context::get('user');