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