From 24ea1ff9cd93cb0f60324d7c2af24d7c220de73e Mon Sep 17 00:00:00 2001 From: Chris Cho Date: Mon, 1 Apr 2024 16:49:46 -0400 Subject: [PATCH 1/2] 040124: Code example syntax fix --- docs/eloquent-models/model-class.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/eloquent-models/model-class.txt b/docs/eloquent-models/model-class.txt index 85b7b994b..5d50cf7c1 100644 --- a/docs/eloquent-models/model-class.txt +++ b/docs/eloquent-models/model-class.txt @@ -249,8 +249,8 @@ The following code example shows mass assignment of the ``Planet`` model: .. code-block:: php $planets = [ - [ 'name' => 'Earth', gravity => 9.8, day_length => '24 hours' ], - [ 'name' => 'Mars', gravity => 3.7, day_length => '25 hours' ], + [ 'name' => 'Earth', 'gravity' => 9.8, 'day_length' => '24 hours' ], + [ 'name' => 'Mars', 'gravity' => 3.7, 'day_length' => '25 hours' ], ]; Planet::create($planets); From 12becebc695f6345fc3f110111e89e8f0f79054b Mon Sep 17 00:00:00 2001 From: Chris Cho Date: Mon, 1 Apr 2024 17:00:54 -0400 Subject: [PATCH 2/2] PRR fixes --- docs/eloquent-models/model-class.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/eloquent-models/model-class.txt b/docs/eloquent-models/model-class.txt index 5d50cf7c1..5542b35ea 100644 --- a/docs/eloquent-models/model-class.txt +++ b/docs/eloquent-models/model-class.txt @@ -249,8 +249,8 @@ The following code example shows mass assignment of the ``Planet`` model: .. code-block:: php $planets = [ - [ 'name' => 'Earth', 'gravity' => 9.8, 'day_length' => '24 hours' ], - [ 'name' => 'Mars', 'gravity' => 3.7, 'day_length' => '25 hours' ], + [ 'name' => 'Earth', 'gravitational_force' => 9.8, 'day_length' => '24 hours' ], + [ 'name' => 'Mars', 'gravitational_force' => 3.7, 'day_length' => '25 hours' ], ]; Planet::create($planets);