laravel session put method code example Example: laravel session put method Session::put('key', 'value'); session(['key' => 'value']);