create(); Song::factory(5)->for($artist)->create(); $this->getAs('api/artists/' . $artist->id . '/songs') ->assertJsonStructure(['*' => SongTest::JSON_STRUCTURE]); } }