diff --git a/docs/as-a-resource/from-data-to-resource.md b/docs/as-a-resource/from-data-to-resource.md index d9456bb4..cac9b5fc 100644 --- a/docs/as-a-resource/from-data-to-resource.md +++ b/docs/as-a-resource/from-data-to-resource.md @@ -277,7 +277,7 @@ class UserData extends Data return new self( $user->title, $user->email, - SongData::create($user->favorite_song) + SongData::from($user->favorite_song) ); } }