Commit 6c3c2a4b authored by Nicolas Widart's avatar Nicolas Widart

Adding active state and setting backend prefix

parent e52382c0
...@@ -9,7 +9,7 @@ class SidebarViewComposer ...@@ -9,7 +9,7 @@ class SidebarViewComposer
{ {
$view->items->put('setting', [ $view->items->put('setting', [
'weight' => 5, 'weight' => 5,
'request' => "*/$view->prefix/setting", 'request' => "*/$view->prefix/settings",
'route' => 'dashboard.settings', 'route' => 'dashboard.settings',
'icon-class' => 'fa fa-cog', 'icon-class' => 'fa fa-cog',
'title' => 'Settings', 'title' => 'Settings',
......
<?php <?php
Route::group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter|auth.admin'], function() { Route::group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter|auth.admin'], function() {
Route::group(['prefix' => 'setting', 'namespace' => 'Modules\Setting\Http\Controllers'], function() Route::group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Setting\Http\Controllers'], function()
{ {
Route::get('/', ['as' => 'dashboard.settings','uses' => 'SettingController@index']); Route::get('settings', ['as' => 'dashboard.settings','uses' => 'SettingController@index']);
}); });
}); });
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