Skip to content

Commit 03c3ca3

Browse files
committed
docs: add empty lines
1 parent 8d281e2 commit 03c3ca3

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

user_guide_src/source/models/entities.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,13 @@ Create the model first at **app/Models/UserModel.php** so that we can interact w
6060

6161
.. literalinclude:: entities/002.php
6262

63-
The model uses the ``users`` table in the database for all of its activities. We've set the ``$allowedFields`` property
63+
The model uses the ``users`` table in the database for all of its activities.
64+
65+
We've set the ``$allowedFields`` property
6466
to include all of the fields that we want outside classes to change. The ``id``, ``created_at``, and ``updated_at`` fields
65-
are handled automatically by the class or the database, so we don't want to change those. Finally, we've set our Entity
67+
are handled automatically by the class or the database, so we don't want to change those.
68+
69+
Finally, we've set our Entity
6670
class as the ``$returnType``. This ensures that all methods on the model that return rows from the database will return
6771
instances of our User Entity class instead of an object or array like normal.
6872

0 commit comments

Comments
 (0)