commit
363d463833
@ -13,4 +13,8 @@ class DashboardController extends BaseController
|
|||||||
{
|
{
|
||||||
return view('frontend.dashboard');
|
return view('frontend.dashboard');
|
||||||
}
|
}
|
||||||
|
public function test()
|
||||||
|
{
|
||||||
|
return view('frontend.dashboard');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -106,13 +106,7 @@
|
|||||||
<a href="#" class="btn btn-default btn-flat">Profile</a>
|
<a href="#" class="btn btn-default btn-flat">Profile</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<a href="{!! url('/logout') !!}" class="btn btn-default btn-flat"
|
<a href="{!! url('/logout') !!}" class="btn btn-default btn-flat">Sign out</a>
|
||||||
onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
|
|
||||||
Sign out
|
|
||||||
</a>
|
|
||||||
<form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
|
|
||||||
{{ csrf_field() }}
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -81,13 +81,7 @@
|
|||||||
<a href="{{ url('/admin') }}">Admin</a>
|
<a href="{{ url('/admin') }}">Admin</a>
|
||||||
@endif
|
@endif
|
||||||
<a href="{{ url('/user/dashboard') }}">Dashboard</a>
|
<a href="{{ url('/user/dashboard') }}">Dashboard</a>
|
||||||
<a href="{!! url('/logout') !!}" class="btn btn-default btn-flat"
|
<a href="{{ url('/logout') }}">Logout</a>
|
||||||
onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
|
|
||||||
Sign out
|
|
||||||
</a>
|
|
||||||
<form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
|
|
||||||
{{ csrf_field() }}
|
|
||||||
</form>
|
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
@ -15,5 +15,6 @@ Route::group([
|
|||||||
});
|
});
|
||||||
|
|
||||||
Auth::routes();
|
Auth::routes();
|
||||||
|
Route::get('/logout', 'Auth\LoginController@logout');
|
||||||
|
|
||||||
require base_path('routes/admin.php');
|
require base_path('routes/admin.php');
|
||||||
|
Loading…
Reference in New Issue
Block a user