src/DdvRestfulApi/Middleware/Laravel/AuthSession.php
protected function startSession(Request $request, $sessionId)
    {
        return tap($this->getSession($sessionId), function ($session) use ($request) {
            $session->setRequestOnHandler($request);
            $session->start();
        });
    }
protected function startSession(Request $request, $sessionId)
    {
        return tap($this->getSession($sessionId), function ($session) use ($request) {
            $session->setRequestOnHandler($request);
            $session->start();
        });
    }
Start the session for the given request.

@param  \Illuminate\Http\Request  $request
@return \Illuminate\Contracts\Session\Session