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