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