Fixed class loading
This commit is contained in:
@@ -1,27 +1,5 @@
|
|||||||
<?php
|
<?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([
|
|
||||||
|
|
||||||
app_path().'/commands',
|
|
||||||
app_path().'/controllers',
|
|
||||||
app_path().'/models',
|
|
||||||
app_path().'/transformers',
|
|
||||||
app_path().'/database/seeds',
|
|
||||||
app_path().'/filters',
|
|
||||||
|
|
||||||
]);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Application Error Logger
|
| Application Error Logger
|
||||||
|
|||||||
@@ -44,19 +44,6 @@ if (file_exists($compiled = __DIR__.'/compiled.php')) {
|
|||||||
|
|
||||||
Patchwork\Utf8\Bootup::initMbstring();
|
Patchwork\Utf8\Bootup::initMbstring();
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Register The Laravel Auto Loader
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| We register an auto-loader "behind" the Composer loader that can load
|
|
||||||
| model classes on the fly, even if the autoload files have not been
|
|
||||||
| regenerated for the application. We'll add it to the stack here.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
Illuminate\Support\ClassLoader::register();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Register The Workbench Loaders
|
| Register The Workbench Loaders
|
||||||
|
|||||||
@@ -27,7 +27,6 @@
|
|||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
"app/controllers",
|
|
||||||
"app/models",
|
"app/models",
|
||||||
"app/database/migrations",
|
"app/database/migrations",
|
||||||
"app/database/seeds",
|
"app/database/seeds",
|
||||||
|
|||||||
Reference in New Issue
Block a user