Commit 33b5f637 by Shawn McCool

Update laravel/documentation/routing.md

Added a warning about using Controller::detect() for routing.
parent 8fea6029
......@@ -295,6 +295,8 @@ The **Controller::detect** method simply returns an array of all of the controll
If you wish to automatically detect the controllers in a bundle, just pass the bundle name to the method. If no bundle is specified, the application folder's controller directory will be searched.
> **Note:** It is important to note that this method gives you no control over the order in which controllers are loaded. Controller::detect() should only be used to Route controllers in very small sites. "Manually" routing controllers gives you much more control, is more self-documenting, and is certainly advised.
#### Register all controllers for the "admin" bundle:
Route::controller(Controller::detect('admin'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment