File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ to access user records always go through that connection::
5858Now any time the ``UserModel `` is loaded from ``Factories `` it will in fact be returning a
5959class instance that uses the alternate database connection.
6060
61+ .. _factories-options :
62+
6163Factories Options
6264==================
6365
Original file line number Diff line number Diff line change @@ -191,10 +191,12 @@ with the ``new`` command::
191191
192192Config files are automatically discovered whenever using the **config() ** function that is always available.
193193
194+ .. note :: We don't recommend you use the same short classname in modules.
195+ Modules that need to override or add to known configurations in **app/Config/ ** should use :ref: `registrars `.
196+
194197.. note :: **config()** finds the file in **app/Config/** when there is a class with the same shortname,
195198 even if you specify a fully qualified class name like ``config(\Acme\Blog\Config\Blog::class) ``.
196-
197- .. note :: Modules that need to override or add to known configurations in **app/Config/** should use :ref:`registrars`.
199+ This is because ``Factories ``'s the default configuration. See :ref: `factories-options ` for more information.
198200
199201Migrations
200202==========
You can’t perform that action at this time.
0 commit comments