Context 管理一次请求生命周期中的数据 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');