FIX: fix few bugs in routes

This commit is contained in:
Michal Kváček
2017-08-11 04:13:33 +02:00
parent ef432702b4
commit 7d847cbab9
9 changed files with 30 additions and 22 deletions
-3
View File
@@ -6,9 +6,6 @@ Route::pattern('id', '\d+');
Route::pattern('url', '[0-9\-a-z]+');
/*******************************************************************************/
Auth::routes();
$this->get('logout', 'Auth\LoginController@logout')
->name('logout');
/**
* This route group serves to handle request in admin
+5
View File
@@ -12,6 +12,11 @@ Route::pattern('url', '[0-9\-a-z]+');
/*******************************************************************************/
Route::group(['prefix' => LaravelLocalization::setLocale(), 'middleware' => ['bindings', 'web']], function () {
Auth::routes();
$this->get('logout', 'Auth\LoginController@logout')
->name('logout');
// Homepage
Route::get('/', 'Visitor\Homepage@getIndex')
->name('page.index');