Skip to content

Commit

Permalink
Update creating-a-data-object.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tsrift authored Oct 9, 2023
1 parent f75afe2 commit ac25e10
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 ac25e10

Please sign in to comment.