I've two questions, Why the classmap directories defined in composer are also defined in global.php , like :
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
ClassLoader::addDirectories(array(
app_path().'/commands',
app_path().'/controllers',
app_path().'/models',
app_path().'/database/seeds',
));
Second question is, Can I nest classes in sub-directories using this loading mechanism? or just first level classes can be autoloaded this way?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community