Skip to content

Commit

Permalink
Fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Nov 6, 2014
1 parent dc74b22 commit 39d913e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Pingpong/Admin/Providers/SupportServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ class SupportServiceProvider extends ServiceProvider {
public function boot()
{
require __DIR__ . '/../permissions.php';
require __DIR__ . '/../routes.php';
require __DIR__ . '/../filters.php';
require __DIR__ . '/../composers.php';
require __DIR__ . '/../helpers.php';
require __DIR__ . '/../menus.php';
require __DIR__ . '/../observers.php';
require __DIR__ . '/../routes.php';
}

public function register()
Expand Down
4 changes: 2 additions & 2 deletions src/Pingpong/Admin/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

Route::group(['prefix' => 'admin', 'namespace' => 'Pingpong\Admin\Controllers'], function ()
{
Route::group(['before' => Config::get('admin::filter.guest')], function ()
Route::group(['before' => 'admin.guest'], function ()
{
Route::resource('login', 'LoginController', ['only' => ['index', 'store']]);
});

Route::group(['before' => Config::get('admin::filter.auth')], function ()
Route::group(['before' => 'admin.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 39d913e

Please sign in to comment.