diff --git a/config/fortify.php b/config/fortify.php index ce67e2c..adf5127 100644 --- a/config/fortify.php +++ b/config/fortify.php @@ -73,7 +73,7 @@ | */ - 'home' => '/dashboard', + 'home' => '/', /* |-------------------------------------------------------------------------- diff --git a/tests/Feature/Auth/AuthenticationTest.php b/tests/Feature/Auth/AuthenticationTest.php index c5bb3f8..f93808b 100644 --- a/tests/Feature/Auth/AuthenticationTest.php +++ b/tests/Feature/Auth/AuthenticationTest.php @@ -29,7 +29,7 @@ public function test_users_can_authenticate_using_the_login_screen() ]); $this->assertAuthenticated(); - $response->assertRedirect(route('dashboard', absolute: false)); + $response->assertRedirect('/'); } public function test_users_with_two_factor_enabled_are_redirected_to_two_factor_challenge() diff --git a/tests/Feature/Auth/EmailVerificationTest.php b/tests/Feature/Auth/EmailVerificationTest.php index 8eaba3c..1f30ead 100644 --- a/tests/Feature/Auth/EmailVerificationTest.php +++ b/tests/Feature/Auth/EmailVerificationTest.php @@ -38,7 +38,7 @@ public function test_email_can_be_verified() Event::assertDispatched(Verified::class); $this->assertTrue($user->fresh()->hasVerifiedEmail()); - $response->assertRedirect(route('dashboard', absolute: false).'?verified=1'); + $response->assertRedirect('/'.'?verified=1'); } public function test_email_is_not_verified_with_invalid_hash() @@ -81,7 +81,7 @@ public function test_verified_user_is_redirected_to_dashboard_from_verification_ $response = $this->actingAs($user)->get(route('verification.notice')); - $response->assertRedirect(route('dashboard', absolute: false)); + $response->assertRedirect('/'); } public function test_already_verified_user_visiting_verification_link_is_redirected_without_firing_event_again(): void @@ -99,7 +99,7 @@ public function test_already_verified_user_visiting_verification_link_is_redirec ); $this->actingAs($user)->get($verificationUrl) - ->assertRedirect(route('dashboard', absolute: false).'?verified=1'); + ->assertRedirect('/'.'?verified=1'); $this->assertTrue($user->fresh()->hasVerifiedEmail()); Event::assertNotDispatched(Verified::class); diff --git a/tests/Feature/Auth/RegistrationTest.php b/tests/Feature/Auth/RegistrationTest.php index 16cc907..6982df2 100644 --- a/tests/Feature/Auth/RegistrationTest.php +++ b/tests/Feature/Auth/RegistrationTest.php @@ -26,6 +26,6 @@ public function test_new_users_can_register() ]); $this->assertAuthenticated(); - $response->assertRedirect(route('dashboard', absolute: false)); + $response->assertRedirect('/'); } } diff --git a/tests/Feature/Auth/VerificationNotificationTest.php b/tests/Feature/Auth/VerificationNotificationTest.php index 4e5da05..323e47f 100644 --- a/tests/Feature/Auth/VerificationNotificationTest.php +++ b/tests/Feature/Auth/VerificationNotificationTest.php @@ -37,7 +37,7 @@ public function test_does_not_send_verification_notification_if_email_is_verifie $this->actingAs($user) ->post(route('verification.send')) - ->assertRedirect(route('dashboard', absolute: false)); + ->assertRedirect('/'); Notification::assertNothingSent(); }