withAuthenticationRoutes() ->withPasswordResetRoutes() ->register(); } /** * Register any application services. * * @return void */ public function 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->isAdmin(); }); } /** * Get the dashboards that should be listed in the Nova sidebar. * * @return array */ protected function dashboards() { return [ new \App\Nova\Dashboards\Main, ]; } }