From 13980509c8273df9de6e8baa35266ad82be2d414 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 18:13:10 +0100 Subject: [PATCH 1/4] Bump aglipanci/laravel-pint-action from 1.0.0 to 2.3.0 (#18) Bumps [aglipanci/laravel-pint-action](https://github.com/aglipanci/laravel-pint-action) from 1.0.0 to 2.3.0. - [Release notes](https://github.com/aglipanci/laravel-pint-action/releases) - [Commits](https://github.com/aglipanci/laravel-pint-action/compare/1.0.0...2.3.0) --- updated-dependencies: - dependency-name: aglipanci/laravel-pint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/fix-php-code-style-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fix-php-code-style-issues.yml b/.github/workflows/fix-php-code-style-issues.yml index 970633c23..bdef9a97a 100644 --- a/.github/workflows/fix-php-code-style-issues.yml +++ b/.github/workflows/fix-php-code-style-issues.yml @@ -13,7 +13,7 @@ jobs: ref: ${{ github.head_ref }} - name: Fix PHP code style issues - uses: aglipanci/laravel-pint-action@1.0.0 + uses: aglipanci/laravel-pint-action@2.3.0 - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 From f6315d1ee60ccbf2a7dcfbc96cb2d739ec6934a5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 18:13:17 +0100 Subject: [PATCH 2/4] Bump actions/checkout from 2 to 4 (#21) Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/fix-php-code-style-issues.yml | 2 +- .github/workflows/run-tests.yml | 2 +- .github/workflows/update-changelog.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fix-php-code-style-issues.yml b/.github/workflows/fix-php-code-style-issues.yml index bdef9a97a..b28ae506a 100644 --- a/.github/workflows/fix-php-code-style-issues.yml +++ b/.github/workflows/fix-php-code-style-issues.yml @@ -8,7 +8,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index fab8ceb03..2eae94c3e 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -32,7 +32,7 @@ jobs: run: rm -rf vendor/laravel/breeze - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: "vendor/laravel/breeze" diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index b20f3b6fb..94df2c332 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -10,7 +10,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: main From c50339f301dca9182e8795bb08c27b13d9857170 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 18:13:25 +0100 Subject: [PATCH 3/4] Bump stefanzweifel/git-auto-commit-action from 4 to 5 (#22) Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4 to 5. - [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases) - [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4...v5) --- updated-dependencies: - dependency-name: stefanzweifel/git-auto-commit-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/fix-php-code-style-issues.yml | 2 +- .github/workflows/update-changelog.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fix-php-code-style-issues.yml b/.github/workflows/fix-php-code-style-issues.yml index b28ae506a..1d74a65a7 100644 --- a/.github/workflows/fix-php-code-style-issues.yml +++ b/.github/workflows/fix-php-code-style-issues.yml @@ -16,6 +16,6 @@ jobs: uses: aglipanci/laravel-pint-action@2.3.0 - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: Fix styling diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index 94df2c332..0cdea2336 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -21,7 +21,7 @@ jobs: release-notes: ${{ github.event.release.body }} - name: Commit updated CHANGELOG - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: branch: main commit_message: Update CHANGELOG From 4b7bbc0f513497464a827cfeef21c70ad1265a8d Mon Sep 17 00:00:00 2001 From: Pascal Baljet Date: Tue, 19 Mar 2024 09:29:55 +0100 Subject: [PATCH 4/4] Updated stubs --- src/Console/InstallsSpladeStack.php | 23 ++++++++----------- ...mailVerificationNotificationController.php | 2 +- .../Auth/VerifyEmailController.php | 4 ++-- .../Feature/Auth/EmailVerificationTest.php | 2 +- .../Feature/Auth/EmailVerificationTest.php | 2 +- .../Auth/AuthenticatedSessionController.php | 2 +- .../Auth/ConfirmablePasswordController.php | 2 +- ...mailVerificationNotificationController.php | 2 +- .../EmailVerificationPromptController.php | 2 +- .../Auth/RegisteredUserController.php | 2 +- .../Auth/VerifyEmailController.php | 4 ++-- .../Feature/Auth/AuthenticationTest.php | 2 +- .../Feature/Auth/EmailVerificationTest.php | 2 +- .../Feature/Auth/RegistrationTest.php | 2 +- .../tests/Feature/Auth/AuthenticationTest.php | 2 +- .../Feature/Auth/EmailVerificationTest.php | 2 +- .../tests/Feature/Auth/RegistrationTest.php | 2 +- .../Auth/AuthenticatedSessionController.php | 2 +- .../Auth/ConfirmablePasswordController.php | 2 +- ...mailVerificationNotificationController.php | 2 +- .../EmailVerificationPromptController.php | 2 +- .../Auth/RegisteredUserController.php | 2 +- .../Auth/VerifyEmailController.php | 4 ++-- .../dusk-tests/Auth/AuthenticationTest.php | 2 +- .../dusk-tests/Auth/EmailVerificationTest.php | 2 +- .../Auth/PasswordConfirmationTest.php | 4 ++-- .../dusk-tests/Auth/RegistrationTest.php | 2 +- 27 files changed, 40 insertions(+), 43 deletions(-) diff --git a/src/Console/InstallsSpladeStack.php b/src/Console/InstallsSpladeStack.php index b2ed6d9af..93bc486e9 100644 --- a/src/Console/InstallsSpladeStack.php +++ b/src/Console/InstallsSpladeStack.php @@ -33,16 +33,16 @@ protected function installSpladeStack() // NPM Packages... $this->updateNodePackages(function ($packages) { return [ - '@protonemedia/laravel-splade' => '^1.4.8', - '@tailwindcss/forms' => '^0.5.3', - '@tailwindcss/typography' => '^0.5.2', - '@vitejs/plugin-vue' => '^4.0.0', - 'autoprefixer' => '^10.4.12', - 'laravel-vite-plugin' => '^0.7.5', - 'postcss' => '^8.4.18', - 'tailwindcss' => '^3.3.0', - 'vite' => '^4.0.0', - 'vue' => '^3.2.41', + '@protonemedia/laravel-splade' => '^1.4.18', + '@tailwindcss/forms' => '^0.5.7', + '@tailwindcss/typography' => '^0.5.10', + '@vitejs/plugin-vue' => '^5.0', + 'autoprefixer' => '^10.4.16', + 'laravel-vite-plugin' => '^1.0', + 'postcss' => '^8.4.32', + 'tailwindcss' => '^3.4', + 'vite' => '^5.0', + 'vue' => '^3.4', ] + $packages; }); @@ -86,9 +86,6 @@ protected function installSpladeStack() copy($spladeBreezeStubsDir.'routes/web.php', base_path('routes/web.php')); copy($spladeBreezeStubsDir.'routes/auth.php', base_path('routes/auth.php')); - // "Dashboard" Route... - $this->replaceInFile('/home', '/dashboard', app_path('Providers/RouteServiceProvider.php')); - // Tailwind / Vite... copy($spladeBaseStubsDir.'tailwind.config.js', base_path('tailwind.config.js')); copy($spladeBaseStubsDir.'postcss.config.js', base_path('postcss.config.js')); diff --git a/stubs/api/app/Http/Controllers/Auth/EmailVerificationNotificationController.php b/stubs/api/app/Http/Controllers/Auth/EmailVerificationNotificationController.php index 9aacc598a..c73cfff5a 100644 --- a/stubs/api/app/Http/Controllers/Auth/EmailVerificationNotificationController.php +++ b/stubs/api/app/Http/Controllers/Auth/EmailVerificationNotificationController.php @@ -16,7 +16,7 @@ class EmailVerificationNotificationController extends Controller public function store(Request $request) { if ($request->user()->hasVerifiedEmail()) { - return redirect()->intended(RouteServiceProvider::HOME); + return redirect()->intended('/dashboard'); } $request->user()->sendEmailVerificationNotification(); diff --git a/stubs/api/app/Http/Controllers/Auth/VerifyEmailController.php b/stubs/api/app/Http/Controllers/Auth/VerifyEmailController.php index 565f1e65d..1d2aa2383 100644 --- a/stubs/api/app/Http/Controllers/Auth/VerifyEmailController.php +++ b/stubs/api/app/Http/Controllers/Auth/VerifyEmailController.php @@ -18,7 +18,7 @@ public function __invoke(EmailVerificationRequest $request) { if ($request->user()->hasVerifiedEmail()) { return redirect()->intended( - config('app.frontend_url').RouteServiceProvider::HOME.'?verified=1' + config('app.frontend_url').'/dashboard?verified=1' ); } @@ -27,7 +27,7 @@ public function __invoke(EmailVerificationRequest $request) } return redirect()->intended( - config('app.frontend_url').RouteServiceProvider::HOME.'?verified=1' + config('app.frontend_url').'/dashboard?verified=1' ); } } diff --git a/stubs/api/pest-tests/Feature/Auth/EmailVerificationTest.php b/stubs/api/pest-tests/Feature/Auth/EmailVerificationTest.php index 68275b924..d3d4e1b28 100644 --- a/stubs/api/pest-tests/Feature/Auth/EmailVerificationTest.php +++ b/stubs/api/pest-tests/Feature/Auth/EmailVerificationTest.php @@ -23,7 +23,7 @@ Event::assertDispatched(Verified::class); expect($user->fresh()->hasVerifiedEmail())->toBeTrue(); - $response->assertRedirect(config('app.frontend_url').RouteServiceProvider::HOME.'?verified=1'); + $response->assertRedirect(config('app.frontend_url').'/dashboard?verified=1'); }); test('email is not verified with invalid hash', function () { diff --git a/stubs/api/tests/Feature/Auth/EmailVerificationTest.php b/stubs/api/tests/Feature/Auth/EmailVerificationTest.php index b9c722ae6..bf8c0723e 100644 --- a/stubs/api/tests/Feature/Auth/EmailVerificationTest.php +++ b/stubs/api/tests/Feature/Auth/EmailVerificationTest.php @@ -32,7 +32,7 @@ public function test_email_can_be_verified() Event::assertDispatched(Verified::class); $this->assertTrue($user->fresh()->hasVerifiedEmail()); - $response->assertRedirect(config('app.frontend_url').RouteServiceProvider::HOME.'?verified=1'); + $response->assertRedirect(config('app.frontend_url').'/dashboard?verified=1'); } public function test_email_is_not_verified_with_invalid_hash() diff --git a/stubs/default/app/Http/Controllers/Auth/AuthenticatedSessionController.php b/stubs/default/app/Http/Controllers/Auth/AuthenticatedSessionController.php index c9d07c303..01a099a99 100644 --- a/stubs/default/app/Http/Controllers/Auth/AuthenticatedSessionController.php +++ b/stubs/default/app/Http/Controllers/Auth/AuthenticatedSessionController.php @@ -31,7 +31,7 @@ public function store(LoginRequest $request) $request->session()->regenerate(); - return redirect()->intended(RouteServiceProvider::HOME); + return redirect()->intended('/dashboard'); } /** diff --git a/stubs/default/app/Http/Controllers/Auth/ConfirmablePasswordController.php b/stubs/default/app/Http/Controllers/Auth/ConfirmablePasswordController.php index e7859b3b5..b26c8c3fb 100644 --- a/stubs/default/app/Http/Controllers/Auth/ConfirmablePasswordController.php +++ b/stubs/default/app/Http/Controllers/Auth/ConfirmablePasswordController.php @@ -38,6 +38,6 @@ public function store(Request $request) $request->session()->put('auth.password_confirmed_at', time()); - return redirect()->intended(RouteServiceProvider::HOME); + return redirect()->intended('/dashboard'); } } diff --git a/stubs/default/app/Http/Controllers/Auth/EmailVerificationNotificationController.php b/stubs/default/app/Http/Controllers/Auth/EmailVerificationNotificationController.php index 6c7fa8031..bc5396514 100644 --- a/stubs/default/app/Http/Controllers/Auth/EmailVerificationNotificationController.php +++ b/stubs/default/app/Http/Controllers/Auth/EmailVerificationNotificationController.php @@ -16,7 +16,7 @@ class EmailVerificationNotificationController extends Controller public function store(Request $request) { if ($request->user()->hasVerifiedEmail()) { - return redirect()->intended(RouteServiceProvider::HOME); + return redirect()->intended('/dashboard'); } $request->user()->sendEmailVerificationNotification(); diff --git a/stubs/default/app/Http/Controllers/Auth/EmailVerificationPromptController.php b/stubs/default/app/Http/Controllers/Auth/EmailVerificationPromptController.php index f17620dad..c4b949984 100644 --- a/stubs/default/app/Http/Controllers/Auth/EmailVerificationPromptController.php +++ b/stubs/default/app/Http/Controllers/Auth/EmailVerificationPromptController.php @@ -16,7 +16,7 @@ class EmailVerificationPromptController extends Controller public function __invoke(Request $request) { return $request->user()->hasVerifiedEmail() - ? redirect()->intended(RouteServiceProvider::HOME) + ? redirect()->intended('/dashboard') : view('auth.verify-email'); } } diff --git a/stubs/default/app/Http/Controllers/Auth/RegisteredUserController.php b/stubs/default/app/Http/Controllers/Auth/RegisteredUserController.php index 863104138..ea6578fd1 100644 --- a/stubs/default/app/Http/Controllers/Auth/RegisteredUserController.php +++ b/stubs/default/app/Http/Controllers/Auth/RegisteredUserController.php @@ -48,6 +48,6 @@ public function store(Request $request) Auth::login($user); - return redirect(RouteServiceProvider::HOME); + return redirect('/dashboard'); } } diff --git a/stubs/default/app/Http/Controllers/Auth/VerifyEmailController.php b/stubs/default/app/Http/Controllers/Auth/VerifyEmailController.php index 7729a5f68..4426d0dad 100644 --- a/stubs/default/app/Http/Controllers/Auth/VerifyEmailController.php +++ b/stubs/default/app/Http/Controllers/Auth/VerifyEmailController.php @@ -17,13 +17,13 @@ class VerifyEmailController extends Controller public function __invoke(EmailVerificationRequest $request) { if ($request->user()->hasVerifiedEmail()) { - return redirect()->intended(RouteServiceProvider::HOME.'?verified=1'); + return redirect()->intended('/dashboard?verified=1'); } if ($request->user()->markEmailAsVerified()) { event(new Verified($request->user())); } - return redirect()->intended(RouteServiceProvider::HOME.'?verified=1'); + return redirect()->intended('/dashboard?verified=1'); } } diff --git a/stubs/default/pest-tests/Feature/Auth/AuthenticationTest.php b/stubs/default/pest-tests/Feature/Auth/AuthenticationTest.php index a19f60e3e..c9c3860f8 100644 --- a/stubs/default/pest-tests/Feature/Auth/AuthenticationTest.php +++ b/stubs/default/pest-tests/Feature/Auth/AuthenticationTest.php @@ -18,7 +18,7 @@ ]); $this->assertAuthenticated(); - $response->assertRedirect(RouteServiceProvider::HOME); + $response->assertRedirect('/dashboard'); }); test('users can not authenticate with invalid password', function () { diff --git a/stubs/default/pest-tests/Feature/Auth/EmailVerificationTest.php b/stubs/default/pest-tests/Feature/Auth/EmailVerificationTest.php index 0e6a6d1d7..c51bc9acb 100644 --- a/stubs/default/pest-tests/Feature/Auth/EmailVerificationTest.php +++ b/stubs/default/pest-tests/Feature/Auth/EmailVerificationTest.php @@ -33,7 +33,7 @@ Event::assertDispatched(Verified::class); expect($user->fresh()->hasVerifiedEmail())->toBeTrue(); - $response->assertRedirect(RouteServiceProvider::HOME.'?verified=1'); + $response->assertRedirect('/dashboard?verified=1'); }); test('email is not verified with invalid hash', function () { diff --git a/stubs/default/pest-tests/Feature/Auth/RegistrationTest.php b/stubs/default/pest-tests/Feature/Auth/RegistrationTest.php index 7b15f47fd..a4c5ee4b0 100644 --- a/stubs/default/pest-tests/Feature/Auth/RegistrationTest.php +++ b/stubs/default/pest-tests/Feature/Auth/RegistrationTest.php @@ -17,5 +17,5 @@ ]); $this->assertAuthenticated(); - $response->assertRedirect(RouteServiceProvider::HOME); + $response->assertRedirect('/dashboard'); }); diff --git a/stubs/default/tests/Feature/Auth/AuthenticationTest.php b/stubs/default/tests/Feature/Auth/AuthenticationTest.php index 075a4c209..73f870a5d 100644 --- a/stubs/default/tests/Feature/Auth/AuthenticationTest.php +++ b/stubs/default/tests/Feature/Auth/AuthenticationTest.php @@ -28,7 +28,7 @@ public function test_users_can_authenticate_using_the_login_screen() ]); $this->assertAuthenticated(); - $response->assertRedirect(RouteServiceProvider::HOME); + $response->assertRedirect('/dashboard'); } public function test_users_can_not_authenticate_with_invalid_password() diff --git a/stubs/default/tests/Feature/Auth/EmailVerificationTest.php b/stubs/default/tests/Feature/Auth/EmailVerificationTest.php index e61810eb0..e3a02d9ff 100644 --- a/stubs/default/tests/Feature/Auth/EmailVerificationTest.php +++ b/stubs/default/tests/Feature/Auth/EmailVerificationTest.php @@ -43,7 +43,7 @@ public function test_email_can_be_verified() Event::assertDispatched(Verified::class); $this->assertTrue($user->fresh()->hasVerifiedEmail()); - $response->assertRedirect(RouteServiceProvider::HOME.'?verified=1'); + $response->assertRedirect('/dashboard?verified=1'); } public function test_email_is_not_verified_with_invalid_hash() diff --git a/stubs/default/tests/Feature/Auth/RegistrationTest.php b/stubs/default/tests/Feature/Auth/RegistrationTest.php index 317a8270a..251262e12 100644 --- a/stubs/default/tests/Feature/Auth/RegistrationTest.php +++ b/stubs/default/tests/Feature/Auth/RegistrationTest.php @@ -27,6 +27,6 @@ public function test_new_users_can_register() ]); $this->assertAuthenticated(); - $response->assertRedirect(RouteServiceProvider::HOME); + $response->assertRedirect('/dashboard'); } } diff --git a/stubs/inertia-common/app/Http/Controllers/Auth/AuthenticatedSessionController.php b/stubs/inertia-common/app/Http/Controllers/Auth/AuthenticatedSessionController.php index 0d36b02e4..2223c6b13 100644 --- a/stubs/inertia-common/app/Http/Controllers/Auth/AuthenticatedSessionController.php +++ b/stubs/inertia-common/app/Http/Controllers/Auth/AuthenticatedSessionController.php @@ -36,7 +36,7 @@ public function store(LoginRequest $request) $request->session()->regenerate(); - return redirect()->intended(RouteServiceProvider::HOME); + return redirect()->intended('/dashboard'); } /** diff --git a/stubs/inertia-common/app/Http/Controllers/Auth/ConfirmablePasswordController.php b/stubs/inertia-common/app/Http/Controllers/Auth/ConfirmablePasswordController.php index f1e72f3ec..813924cc0 100644 --- a/stubs/inertia-common/app/Http/Controllers/Auth/ConfirmablePasswordController.php +++ b/stubs/inertia-common/app/Http/Controllers/Auth/ConfirmablePasswordController.php @@ -39,6 +39,6 @@ public function store(Request $request) $request->session()->put('auth.password_confirmed_at', time()); - return redirect()->intended(RouteServiceProvider::HOME); + return redirect()->intended('/dashboard'); } } diff --git a/stubs/inertia-common/app/Http/Controllers/Auth/EmailVerificationNotificationController.php b/stubs/inertia-common/app/Http/Controllers/Auth/EmailVerificationNotificationController.php index 6c7fa8031..bc5396514 100644 --- a/stubs/inertia-common/app/Http/Controllers/Auth/EmailVerificationNotificationController.php +++ b/stubs/inertia-common/app/Http/Controllers/Auth/EmailVerificationNotificationController.php @@ -16,7 +16,7 @@ class EmailVerificationNotificationController extends Controller public function store(Request $request) { if ($request->user()->hasVerifiedEmail()) { - return redirect()->intended(RouteServiceProvider::HOME); + return redirect()->intended('/dashboard'); } $request->user()->sendEmailVerificationNotification(); diff --git a/stubs/inertia-common/app/Http/Controllers/Auth/EmailVerificationPromptController.php b/stubs/inertia-common/app/Http/Controllers/Auth/EmailVerificationPromptController.php index b02dd8157..e0ec1b316 100644 --- a/stubs/inertia-common/app/Http/Controllers/Auth/EmailVerificationPromptController.php +++ b/stubs/inertia-common/app/Http/Controllers/Auth/EmailVerificationPromptController.php @@ -17,7 +17,7 @@ class EmailVerificationPromptController extends Controller public function __invoke(Request $request) { return $request->user()->hasVerifiedEmail() - ? redirect()->intended(RouteServiceProvider::HOME) + ? redirect()->intended('/dashboard') : Inertia::render('Auth/VerifyEmail', ['status' => session('status')]); } } diff --git a/stubs/inertia-common/app/Http/Controllers/Auth/RegisteredUserController.php b/stubs/inertia-common/app/Http/Controllers/Auth/RegisteredUserController.php index 93b6c3e3f..83ec1bf2a 100644 --- a/stubs/inertia-common/app/Http/Controllers/Auth/RegisteredUserController.php +++ b/stubs/inertia-common/app/Http/Controllers/Auth/RegisteredUserController.php @@ -49,6 +49,6 @@ public function store(Request $request) Auth::login($user); - return redirect(RouteServiceProvider::HOME); + return redirect('/dashboard'); } } diff --git a/stubs/inertia-common/app/Http/Controllers/Auth/VerifyEmailController.php b/stubs/inertia-common/app/Http/Controllers/Auth/VerifyEmailController.php index 7729a5f68..4426d0dad 100644 --- a/stubs/inertia-common/app/Http/Controllers/Auth/VerifyEmailController.php +++ b/stubs/inertia-common/app/Http/Controllers/Auth/VerifyEmailController.php @@ -17,13 +17,13 @@ class VerifyEmailController extends Controller public function __invoke(EmailVerificationRequest $request) { if ($request->user()->hasVerifiedEmail()) { - return redirect()->intended(RouteServiceProvider::HOME.'?verified=1'); + return redirect()->intended('/dashboard?verified=1'); } if ($request->user()->markEmailAsVerified()) { event(new Verified($request->user())); } - return redirect()->intended(RouteServiceProvider::HOME.'?verified=1'); + return redirect()->intended('/dashboard?verified=1'); } } diff --git a/stubs/splade/dusk-tests/Auth/AuthenticationTest.php b/stubs/splade/dusk-tests/Auth/AuthenticationTest.php index 2c57de52e..9fda2e4e8 100644 --- a/stubs/splade/dusk-tests/Auth/AuthenticationTest.php +++ b/stubs/splade/dusk-tests/Auth/AuthenticationTest.php @@ -34,7 +34,7 @@ public function test_users_can_authenticate_using_the_login_screen() ->type('email', $user->email) ->type('password', 'password') ->press('Log in') - ->waitForLocation(RouteServiceProvider::HOME) + ->waitForLocation('/dashboard') ->assertAuthenticatedAs($user); }); } diff --git a/stubs/splade/dusk-tests/Auth/EmailVerificationTest.php b/stubs/splade/dusk-tests/Auth/EmailVerificationTest.php index dcb01d2bb..d117ce847 100644 --- a/stubs/splade/dusk-tests/Auth/EmailVerificationTest.php +++ b/stubs/splade/dusk-tests/Auth/EmailVerificationTest.php @@ -43,7 +43,7 @@ public function test_email_can_be_verified() $browser->loginAs($user) ->visit($verificationUrl) ->waitForText('You\'re logged in!') - ->assertPathIs(RouteServiceProvider::HOME) + ->assertPathIs('/dashboard') ->assertQueryStringHas('verified', 1); $this->assertTrue($user->fresh()->hasVerifiedEmail()); diff --git a/stubs/splade/dusk-tests/Auth/PasswordConfirmationTest.php b/stubs/splade/dusk-tests/Auth/PasswordConfirmationTest.php index 33cd77aab..d585e0e25 100644 --- a/stubs/splade/dusk-tests/Auth/PasswordConfirmationTest.php +++ b/stubs/splade/dusk-tests/Auth/PasswordConfirmationTest.php @@ -34,8 +34,8 @@ public function test_password_can_be_confirmed() ->waitForText('Please confirm your password before continuing.') ->type('password', 'password') ->press('Confirm') - ->waitForLocation(RouteServiceProvider::HOME) - ->assertPathIs(RouteServiceProvider::HOME); + ->waitForLocation('/dashboard') + ->assertPathIs('/dashboard'); }); } diff --git a/stubs/splade/dusk-tests/Auth/RegistrationTest.php b/stubs/splade/dusk-tests/Auth/RegistrationTest.php index 81c81e2c0..72b28e931 100644 --- a/stubs/splade/dusk-tests/Auth/RegistrationTest.php +++ b/stubs/splade/dusk-tests/Auth/RegistrationTest.php @@ -35,7 +35,7 @@ public function test_new_users_can_register() ->type('password', 'password') ->type('password_confirmation', 'password') ->press('Register') - ->waitForLocation(RouteServiceProvider::HOME) + ->waitForLocation('/dashboard') ->assertAuthenticated(); }); }