Commit 73e9272d authored by Nicolas Widart's avatar Nicolas Widart

Using the $router

parent 20048613
<?php
Route::group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter|auth.admin'], function() {
Route::group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Setting\Http\Controllers'], function()
$router->group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter|auth.admin'], function($router) {
$router->group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Setting\Http\Controllers'], function($router)
{
Route::resource('settings', 'Admin\SettingController', ['except' => ['show'], 'names' => [
$router->resource('settings', 'Admin\SettingController', ['except' => ['show'], 'names' => [
'index' => 'dashboard.setting.index',
'create' => 'dashboard.setting.create',
'store' => 'dashboard.setting.store',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment