PROJECT_ROOT\routes\web.php
Route::get ('/', 'PageController@home');Firstly, you should run the command "composer dump-autoload" first and then refresh webpage, check if the problem still exists
composer dump-autoload
If the problem still here, visit your Kernel file (located at PROJECT_ROOT\app\Http\Kernel.php), check have you added your path of middleware to $middleware:
For my case, i missed register that middleware so it's doesn't work, it alright now.
No comments :
Post a Comment