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