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