Skip to content

Commit

Permalink
Set application home URI to /dashboard (#181)
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
nikolaynikolaevn authored Aug 15, 2022
1 parent a6573fd commit 163fdc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Console/InstallsApiStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 163fdc8

Please sign in to comment.