Skip to content

Commit

Permalink
update middleware instead of before
Browse files Browse the repository at this point in the history
  • Loading branch information
gilacost committed Aug 6, 2015
1 parent 759aa7e commit a01145e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pingpong/Admin/routes.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

Route::group(['prefix' => config('admin.prefix', 'admin'), 'namespace' => 'Pingpong\Admin\Controllers'], function () {
Route::group(['before' => config('admin.filter.guest')], function () {
Route::group(['middleware' => config('admin.filter.guest')], function () {
Route::resource('login', 'LoginController', [
'only' => ['index', 'store'],
'names' => [
Expand All @@ -11,7 +11,7 @@
]);
});

Route::group(['before' => config('admin.filter.auth')], function () {
Route::group(['middleware' => config('admin.filter.auth')], function () {
Route::get('/', ['as' => 'admin.home', 'uses' => 'SiteController@index']);
Route::get('/logout', ['as' => 'admin.logout', 'uses' => 'SiteController@logout']);

Expand Down

0 comments on commit a01145e

Please sign in to comment.