update
parent
8e10203b4f
commit
a05680b06e
|
|
@ -37,7 +37,7 @@ class HomeController extends Controller
|
|||
}else{
|
||||
$access = AccessMenu::with(['parentMenu'])->whereHas('parentMenu',function($query){
|
||||
$query->where('parent_id','!=','0');
|
||||
})->where('module','like','%dashboard%')->pluck('ms_menu_id')->toArray();
|
||||
})->where('module','like','%dashboard.inventory%')->pluck('ms_menu_id')->toArray();
|
||||
}
|
||||
|
||||
$data['dashboard'] = Menu::whereIn('MsMenuId',array_unique($access))->get();
|
||||
|
|
|
|||
Loading…
Reference in New Issue