withAuthenticationRoutes() ->withPasswordResetRoutes() ->register(); } /** * Register the Nova gate. * * This gate determines who can access Nova in non-local environments. * * @return void */ protected function gate() { Gate::define('viewNova', function ($user) { return $user->hasDirectPermission('access'); // return in_array($user->email, [ // ]); }); } /** * Get the cards that should be displayed on the default Nova dashboard. * * @return array */ protected function cards() { return [ //new Help, ]; } /** * Get the extra dashboards that should be displayed on the Nova dashboard. * * @return array */ protected function dashboards() { return []; } /** * Get the tools that should be listed in the Nova sidebar. * * @return array */ public function tools() { return [ \Vyuldashev\NovaPermission\NovaPermissionTool::make() ->rolePolicy(RolePolicy::class) ->permissionPolicy(PermissionPolicy::class), new \OptimistDigital\NovaSettings\NovaSettings, ]; } /** * Register any application services. * * @return void */ public function register() { // } }