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
+8-5
Original file line number
Diff line number
Diff line change
@@ -251,7 +251,8 @@ You can specify namespaces. See :ref:`helpers-loading-from-specified-namespace`
251
251
Language Files
252
252
==============
253
253
254
-
Language files are located automatically from defined namespaces when using the ``lang()`` method, as long as the
254
+
Language files are located automatically from defined namespaces when using the
255
+
:php:func:`lang()` function, as long as the
255
256
file follows the same directory structures as the main application directory.
256
257
257
258
Libraries
@@ -272,13 +273,15 @@ Model files are automatically discovered whenever using the :php:func:`model()`
272
273
273
274
.. note:: We don't recommend you use the same short classname in modules.
274
275
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.
276
+
.. note:: Prior to v4.4.0, ``model()`` finds the file in **app/Models/** when
277
+
there is a class with the same shortname, even if you specify a fully qualified
278
+
class name like ``model(\Acme\Blog\Model\PostModel::class)``.
279
+
See the Note in :ref:`factories-passing-fully-qualified-classname` for more
280
+
information.
278
281
279
282
Views
280
283
=====
281
284
282
-
Views can be loaded using the class namespace as described in the :doc:`views </outgoing/views>` documentation:
285
+
Views can be loaded using the class namespace as described in the :ref:`views <namespaced-views>` documentation:
0 commit comments