diff --git a/docs/as-a-data-transfer-object/creating-a-data-object.md b/docs/as-a-data-transfer-object/creating-a-data-object.md index ef226167..a30877a8 100644 --- a/docs/as-a-data-transfer-object/creating-a-data-object.md +++ b/docs/as-a-data-transfer-object/creating-a-data-object.md @@ -283,7 +283,7 @@ class SongController { $data = $request->getData(); - $song = Song::create($data); + $song = Song::create($data->toArray()); return $data; }