Last active
August 29, 2015 14:02
-
-
Save ayonliu/9ed1b4bbdbb6f9ac5a67 to your computer and use it in GitHub Desktop.
Register The Laravel Class Loader without Composer updating.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
| path: app/start/global.php | |
|-------------------------------------------------------------------------- | |
| Register The Laravel Class Loader | |
|-------------------------------------------------------------------------- | |
| | |
| In addition to using Composer, you may use the Laravel class loader to | |
| load your controllers and models. This is useful for keeping all of | |
| your classes in the "global" namespace without Composer updating. | |
| | |
*/ | |
ClassLoader::addDirectories(array( | |
app_path().'/commands', | |
app_path().'/controllers', | |
app_path().'/models', | |
app_path().'/database/seeds', | |
// add my own library | |
app_path().'/library', | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment