correct login route

This commit is contained in:
Arno Kaimbacher 2018-09-04 17:15:56 +02:00
parent 8dd6567ccc
commit e771c4921f
3 changed files with 5 additions and 5 deletions

View File

@ -83,8 +83,8 @@
<nav class="pure-menu pure-menu-horizontal custom-menu-right"> <nav class="pure-menu pure-menu-horizontal custom-menu-right">
<ul class="pure-menu-list"> <ul class="pure-menu-list">
@if (Auth::guest()) @if (Auth::guest())
<li class="pure-menu-item {{ Route::currentRouteName() == 'access.login' ? 'active' : '' }}"> <li class="pure-menu-item {{ Route::currentRouteName() == 'login' ? 'active' : '' }}">
<a class="pure-menu-link" href="{{ route('access.login') }}">LOGIN</a> <a class="pure-menu-link" href="{{ route('login') }}">LOGIN</a>
</li> </li>
<!--<li class="pure-menu-item"><a class="pure-menu-link" href="{{ url('register') }}">REGISTER</a></li>--> <!--<li class="pure-menu-item"><a class="pure-menu-link" href="{{ url('register') }}">REGISTER</a></li>-->
@else @else

View File

@ -89,8 +89,8 @@
<h2 class="pure-menu-heading">Access Management <span class="fa fa-angle-down"></h2> <h2 class="pure-menu-heading">Access Management <span class="fa fa-angle-down"></h2>
<ul class="pure-menu-list treeview-menu {{ active_class(Route::is('access.*'), 'menu-open') }}" style="display: none; {{ active_class(Route::is('access.*'), 'display: block;') }}"> <ul class="pure-menu-list treeview-menu {{ active_class(Route::is('access.*'), 'menu-open') }}" style="display: none; {{ active_class(Route::is('access.*'), 'display: block;') }}">
@if (Auth::guest()) @if (Auth::guest())
<li class="pure-menu-item {{ Route::currentRouteName() == 'access.login' ? 'active' : '' }}"> <li class="pure-menu-item {{ Route::currentRouteName() == 'login' ? 'active' : '' }}">
<a class="pure-menu-link" href="{{ route('access.login') }}">LOGIN</a> <a class="pure-menu-link" href="{{ route('login') }}">LOGIN</a>
</li> </li>
@else @else
@permission('settings') @permission('settings')

View File

@ -294,7 +294,7 @@ Route::get('settings/book/delete/{id}', [
// 'password' => 'Auth\PasswordController', // 'password' => 'Auth\PasswordController',
// ]); // ]);
//Auth::routes(); //Auth::routes();
$this->get('login', 'Auth\LoginController@showLoginForm')->name('access.login'); $this->get('login', 'Auth\LoginController@showLoginForm')->name('login');
$this->post('login', 'Auth\LoginController@login'); $this->post('login', 'Auth\LoginController@login');
$this->get('logout', 'Auth\LoginController@logout')->name('logout'); $this->get('logout', 'Auth\LoginController@logout')->name('logout');
// Registration Routes... // Registration Routes...