Skip to content

Commit e959925

Browse files
author
Chris Cho
authored
040124: Code example syntax fix for Eloquent Model Class page (#2809)
* 040124: Code example syntax fix
1 parent e77a474 commit e959925

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/eloquent-models/model-class.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ The following code example shows mass assignment of the ``Planet`` model:
249249
.. code-block:: php
250250

251251
$planets = [
252-
[ 'name' => 'Earth', gravity => 9.8, day_length => '24 hours' ],
253-
[ 'name' => 'Mars', gravity => 3.7, day_length => '25 hours' ],
252+
[ 'name' => 'Earth', 'gravitational_force' => 9.8, 'day_length' => '24 hours' ],
253+
[ 'name' => 'Mars', 'gravitational_force' => 3.7, 'day_length' => '25 hours' ],
254254
];
255255

256256
Planet::create($planets);

0 commit comments

Comments
 (0)