Level 32
Route::group(['middleware' => ['web']], function () { // your routes here });
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Whenever I run route:list I get the following error:
[RuntimeException]
Session store not set on request.
I don't seem to get it anywhere else that I've found so far.
I'm running Laravel Framework version 5.2.41
Thanks.
Found it.
I had a constructor that was asking for a $request->session() and of course running under the console there is no session.
Changed to :
public function __construct(Request $request)
{
$this->request = $request;
if ($request->ajax()) {
$this->session = $request->session();
}
}
And now the error is gone, hopefully someone will find this useful.
Please or to participate in this conversation.