Skip to content

Commit

Permalink
Merge pull request #582 from tsrift/patch-1
Browse files Browse the repository at this point in the history
Update creating-a-data-object.md
  • Loading branch information
rubenvanassche authored Oct 12, 2023
2 parents c695f0d + ac25e10 commit 85f0899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/as-a-data-transfer-object/creating-a-data-object.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ class SongController
{
$data = $request->getData();

$song = Song::create($data);
$song = Song::create($data->toArray());

return $data;
}
Expand Down

0 comments on commit 85f0899

Please sign in to comment.