You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/general/modules.rst
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -272,9 +272,11 @@ Model files are automatically discovered whenever using the :php:func:`model()`
272
272
273
273
.. note:: We don't recommend you use the same short classname in modules.
274
274
275
-
.. note:: ``model()`` finds the file in **app/Models/** when there is a class with the same shortname,
276
-
even if you specify a fully qualified class name like ``model(\Acme\Blog\Model\PostModel::class)``.
277
-
This is because ``model()`` is a wrapper for the ``Factories`` class which uses ``preferApp`` by default. See :ref:`factories-loading-class` for more information.
275
+
.. note:: Prior to v4.4.0, ``model()`` finds the file in **app/Models/** when
276
+
there is a class with the same shortname, even if you specify a fully qualified
277
+
class name like ``model(\Acme\Blog\Model\PostModel::class)``.
278
+
See the Note in :ref:`factories-passing-fully-qualified-classname` for more
0 commit comments