correct login route
This commit is contained in:
parent
8dd6567ccc
commit
e771c4921f
|
@ -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
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user