From 163fdc884dd24dd8df68d7278cc91a7473329a04 Mon Sep 17 00:00:00 2001 From: Nikolay Nikolaev Date: Mon, 15 Aug 2022 16:03:41 +0200 Subject: [PATCH] Set application home URI to /dashboard (#181) Set the application home to /dashboard since the /home URI does not exist by default but /dashboard exists on the Breeze Next.js example app. Alternatively, this could be set to "/" as this URL should be available on most apps. This then will be used by the VerifyEmailController for redirection to config('app.frontend_url').RouteServiceProvider::HOME.'?verified=1'. --- src/Console/InstallsApiStack.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Console/InstallsApiStack.php b/src/Console/InstallsApiStack.php index 501faec22..4284e064e 100644 --- a/src/Console/InstallsApiStack.php +++ b/src/Console/InstallsApiStack.php @@ -36,6 +36,7 @@ protected function installApiStack() // Providers... $files->copyDirectory(__DIR__.'/../../stubs/api/App/Providers', app_path('Providers')); + $this->replaceInFile("HOME = '/home'", "HOME = '/dashboard'", app_path('Providers/RouteServiceProvider.php')); // Routes... copy(__DIR__.'/../../stubs/api/routes/api.php', base_path('routes/api.php'));