Ravel 5.1 phpartisan route:list indicates Session store not set on request

Asked 2 years ago, Updated 2 years ago, 102 views

phpartisan route:list indicates

 RuntimeException Session store not set on request. 

I can't see the route list.I would appreciate it if you could give me advice from someone you know.

routes.php

Route::get('/', 'UserController@showProfile');

The controller action format in causes problems.

Route::get('/', function(){
    return 'Hello World';
});

The closure format of the is acceptable.

Here are the results when no errors occur:

+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Domain | Method | URI | Name | Action | Middleware |
+--------+----------+------------------------------+----------------------+---------------------------------------------------------------+------------+
|        | GET | HEAD | / | Close | |
|        | GET | HEAD | _debugbar/assets/javascript | debugbar.assets.js | Barryvdh\Debugbar\Controllers\AssetController@js | |
|        | GET | HEAD | _debugbar/assets/stylesheets | debugbar.assets.css | Barryvdh\Debugbar\Controllers\AssetController@cs| |
|        | GET | HEAD | _debugbar/clockwork/{id} | debugbar.clockwork | Barryvdh\Debugbar\Controllers\OpenHandlerController@clockwork | |
|        | GET | HEAD |_debugbar/open | debugbar.openhandler | Barryvdh\Debugbar\Controllers\OpenHandlerController@handle | |
+--------+----------+------------------------------+----------------------+---------------------------------------------------------------+------------+

I do not know the cause of the error and would appreciate it if you could tell me how to view the route list.

php laravel-5

2022-09-30 20:24

1 Answers

I have just started developing it in the Lavel 5.1 environment, so I checked it.

As a result, both the closure format and the controller action format are displayed without any problems.Therefore, it does not appear to be a problem in the specified format.Why don't you follow the steps below to find out what the problem is?

This is not a direct answer, but I hope it helps.


2022-09-30 20:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.