get(route('dashboard'))->assertRedirect(route('login')); } public function test_authenticated_users_can_visit_the_dashboard() { $this->actingAs($user = User::factory()->create()); $this->get(route('dashboard'))->assertOk(); } }