From ac25e10d063d0c254f349bb2fd8ed046a626eca8 Mon Sep 17 00:00:00 2001 From: tsrift <47740602+tsrift@users.noreply.github.com> Date: Mon, 9 Oct 2023 16:15:17 +0200 Subject: [PATCH] Update creating-a-data-object.md --- docs/as-a-data-transfer-object/creating-a-data-object.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }