Remove the Illuminate\Foundation\Http\Middleware\VerifyCsrfToken and Illuminate\View\Middleware\ShareErrorsFromSession from your middleware. These features require sessions.
Not required, but I probably also suggest setting your session driver to array , just so that if any functions you use require session functions, they can work, at least without errors. The array driver, as it suggests, stores all session data in a standard PHP array, so everything will be erased as soon as the request is complete.
source share