Laravel - Session store not set on request

It sounds like you are trying to use the Laravel session, but it is not available in the current request.

There are a few reasons why this might be happening:

  1. Make sure that the web middleware group is applied to your route or controller. This will ensure that the session is available on the request.

  2. If you are using the session facade or the Auth facade and the session is not set, it could be because you are running an asynchronous job or a console command. In this case, the session is not available because it is only started in the HTTP kernel.

  3. If you are using a custom session driver (e.g. database, memcached, etc.), make sure that you have correctly configured your session store and that it is working correctly.

Watch a course Learn object oriented PHP

I hope this helps! Let me know if you have any other questions.