use Illuminate\Http\Request; $request = Request::capture(); $session = $request->getSession(); $value = $session->get('key');
use Illuminate\Http\Request; $request = Request::capture(); $session = $request->getSession(); $session->put('key', 'value');In this example, the `put()` method is called on the session object to add a new value to the session. The key and value are passed as arguments to the `put()` method. Overall, the `Illuminate\Http\Request` package library provides a robust set of tools for working with HTTP requests in PHP, including session manipulation via the `getSession()` method.