get('/places'); $response->assertStatus(200); } /** * Test a specific place. */ #[Test] public function singlePlacePageLoads(): void { $place = Place::factory()->create(); $response = $this->get($place->uri); $response->assertViewHas('place', $place); } #[Test] public function unknownPlaceGives404() { $response = $this->get('/places/unknown'); $response->assertNotFound(); } }