. mysite.com/login mysite/admin/login, , , ( /login ), - login.blade.php (Laravel 5.3):
<form class="form-horizontal" role="form" method="POST" action="{{ url('/login') }}">
A little oversight by developers who, despite all this wired cleverness, were still stupid enough to hardcode this URL into a presentation template ... This line should really indicate the "postlogin" named route in Routes.php, that is:
<form class="form-horizontal" role="form" method="POST" action="{{ route('postlogin') }}">
Now your form action attribute will be bound to any URL specified for the route named postloginin Routes.php, i.e.:
Route::post('login', ['as' => 'postlogin', 'uses' => 'AuthController@login' ]);
Inigo source
share