Skip to content

Commit 2df0add

Browse files
authored
Merge pull request #7 from zanemmm/master
Fix #6, update custom route
2 parents 9a0e3eb + becb420 commit 2df0add

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Config.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ protected static function registerRoutes()
4040
{
4141
parent::routes(function ($router) {
4242
/* @var \Illuminate\Routing\Router $router */
43-
$router->resource('config', 'Encore\Admin\Config\ConfigController');
43+
$router->resource(
44+
config('admin.extensions.config.name', 'config'),
45+
config('admin.extensions.config.controller', 'Encore\Admin\Config\ConfigController')
46+
);
4447
});
4548
}
4649

0 commit comments

Comments
 (0)