📜  laravel 会话 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:18.050000             🧑  作者: Mango

代码示例6
// Via a request instance...
$request->session()->put('key', 'value');

// Via the global "session" helper...
session(['key' => 'value']);