features([ Features::updatePasswords(), // Features::emailVerification(), // Features::twoFactorAuthentication(['confirm' => true, 'confirmPassword' => true]), ]) ->register(); } /** * Register the Nova routes. */ protected function routes(): void { Nova::routes() ->withAuthenticationRoutes(default: true) ->withPasswordResetRoutes() ->withoutEmailVerificationRoutes() ->register(); } /** * Register the Nova gate. * * This gate determines who can access Nova in non-local environments. */ protected function gate(): void { Gate::define('viewNova', function (User $user) { return in_array($user->email, [ // ]); }); } /** * Get the dashboards that should be listed in the Nova sidebar. * * @return array */ protected function dashboards(): array { return [ new \App\Nova\Dashboards\Main, new \App\Nova\Dashboards\WorkshopDashboard, ]; } /** * Get the tools that should be listed in the Nova sidebar. * * @return array */ public function tools(): array { return []; } /** * Register any application services. */ public function register(): void { parent::register(); // } }