From cac54c9cce663e9bffeb06dfc3ac388ce1e3d3a1 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 8 Jul 2024 11:08:54 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- .../NovaWithoutAuthenticationServiceProvider.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app/Providers/NovaWithoutAuthenticationServiceProvider.php b/app/Providers/NovaWithoutAuthenticationServiceProvider.php index b7775a39..ad507668 100644 --- a/app/Providers/NovaWithoutAuthenticationServiceProvider.php +++ b/app/Providers/NovaWithoutAuthenticationServiceProvider.php @@ -6,6 +6,17 @@ class NovaWithoutAuthenticationServiceProvider extends NovaServiceProvider { + /** + * Register the Fortify configurations. + * + * @return void + */ + protected function fortify() + { + Nova::fortify() + ->register(routes: false); + } + /** * Register the Nova routes. * @@ -15,7 +26,6 @@ protected function routes() { Nova::routes() ->withoutAuthenticationRoutes() - ->withPasswordResetRoutes() - ->register(fortify: false); + ->withPasswordResetRoutes(); } }