// Via a request instance... $request->session()->put('key', 'value'); // Via the global "session" helper... session(['key' => 'value']);