Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 committed Nov 10, 2017
1 parent ec52877 commit 7ab10be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Modules/MenuModule/menus_routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@
Route::group(['middleware' => ['web', CBBackend::class], 'prefix' => cbAdminPath(), 'namespace' => ctrlNamespace(),
], function () use ($dashboard_menu) {

$dashboard_type = $dashboard_menu->type;
$path = $dashboard_menu->path;

if (! $dashboard_menu) {
return;
}
$dashboard_type = $dashboard_menu->type;
$path = $dashboard_menu->path;


if ($dashboard_type == 'Statistic') {
Route::get('/', '\\crocodicstudio\\crudbooster\\StatisticModule\\AdminStatisticBuilderController@getDashboard');
Expand All @@ -70,8 +70,8 @@
}
});

Route::group(['middleware' => ['web', CBBackend::class], 'prefix' => cbAdminPath(), 'namespace' => $namespace,
], function () use ($namespace, $dashboard_menu) {
Route::group(['middleware' => ['web', CBBackend::class], 'prefix' => cbAdminPath(), 'namespace' => '\crocodicstudio\crudbooster\controllers',
], function () use ($dashboard_menu) {
if (! $dashboard_menu) {
CRUDBooster::routeController('/', '\crocodicstudio\crudbooster\Modules\AuthModule\AuthController');
}
Expand Down

0 comments on commit 7ab10be

Please sign in to comment.