Skip to content

ailuoy/laravel-context

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Context

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

Install

composer require ailuoy/laravel-context

Ailuoy\Context\ContextServiceProvider::class,

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

Usage

<?php

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

Context::get('user');

Context::all();

About

管理一次请求生命周期中的数据

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%