From 2b955143db7769ddaf0048e5859f262f1222089a Mon Sep 17 00:00:00 2001 From: Gravitano Date: Tue, 23 Jun 2015 15:58:31 +0700 Subject: [PATCH] Allow to change prefix admin url --- src/Pingpong/Admin/routes.php | 2 +- src/config/config.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Pingpong/Admin/routes.php b/src/Pingpong/Admin/routes.php index f235eb4..be24619 100644 --- a/src/Pingpong/Admin/routes.php +++ b/src/Pingpong/Admin/routes.php @@ -1,6 +1,6 @@ 'admin', 'namespace' => 'Pingpong\Admin\Controllers'], function () { +Route::group(['prefix' => config('admin.prefix', 'admin'), 'namespace' => 'Pingpong\Admin\Controllers'], function () { Route::group(['before' => config('admin.filter.guest')], function () { Route::resource('login', 'LoginController', [ 'only' => ['index', 'store'], diff --git a/src/config/config.php b/src/config/config.php index 9e1938c..2d85e49 100644 --- a/src/config/config.php +++ b/src/config/config.php @@ -1,6 +1,7 @@ 'admin', 'filter' => [ 'auth' => 'admin.auth', 'guest' => 'admin.guest',