Answer the question
In order to leave comments, you need to log in
How to trace routes in laravel5?
I can't figure out how to track the routes and why the routes are incorrect.
I have some url - serenity/public/user/register
I myself am on sl. url - serenity/public/user/login.
I get there if I go to serenity/public/
So after I click on register, the debugger is triggered.
It goes through everything from routes.php
Route::get('/', ['middleware' => 'auth', function (){ return view('welcome'); }]);
// *** USER
Route::get('user/login', ['uses' => 'Auth\[email protected]', 'as' => 'login.index']);
Route::get('user/logout', ['uses' => 'Auth\[email protected]', 'as' => 'user.logout']);
Route::post('user/login', ['uses' => 'Auth\[email protected]', 'as' => 'user.login']);
Route::post('user/register', ['uses' => 'Auth\[email protected]', 'as' => 'user.register.sign']);
Route::get('user/register', ['uses' => 'Auth\[email protected]', 'as' => 'user.register.index']);
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question