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