Skip to content

Commit

Permalink
040124: Code example syntax fix for Eloquent Model Class page (#2809)
Browse files Browse the repository at this point in the history
* 040124: Code example syntax fix
  • Loading branch information
Chris Cho authored Apr 4, 2024
1 parent e77a474 commit e959925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/eloquent-models/model-class.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e959925

Please sign in to comment.