Skip to content

Commit

Permalink
Allow to change prefix admin url
Browse files Browse the repository at this point in the history
  • Loading branch information
Gravitano committed Jun 23, 2015
1 parent bb3d6ea commit 2b95514
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pingpong/Admin/routes.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

Route::group(['prefix' => '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'],
Expand Down
1 change: 1 addition & 0 deletions src/config/config.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

return [
'prefix' => 'admin',
'filter' => [
'auth' => 'admin.auth',
'guest' => 'admin.guest',
Expand Down

0 comments on commit 2b95514

Please sign in to comment.