get('/'); $response->assertRedirect('/login'); }); test('home route redirects authenticated users to dashboard', function () { $user = User::factory()->create(); $response = $this->actingAs($user)->get('/'); $response->assertRedirect(route('dashboard')); });