protected function shareMainViewData()
 {
     View::share('appTitle', AdminOption::get('title'));
     View::share('menu', $this->getMenu());
     View::share('theme', $this->theme);
     View::share('layout', $this->theme . '.' . $this->masterLayout);
     View::share('standalone', $this->standalone);
     View::share('icon', AdminOption::get('icons'));
     View::share('models', $this->modelManager->all());
 }
 public static function to($action)
 {
     return true;
     $model = ModelManager::getCurrent()->name;
     $modelPermissions = Artificer::modelManager()->getOption('action_permissions.' . $action, [], $model);
     return self::hasPermission($modelPermissions);
 }