S
S
Stepan2015-12-19 20:28:44
htaccess
Stepan, 2015-12-19 20:28:44

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']);

Reloads the page. And brings me back to serenity/public/user/login
My htaccess
<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>

I suspect it's a redirect. Help me to understand

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question