Use Composer's PSR-4 autoloader to put namespaces classes in Laravel directories

Submitted by rmasters - 10 years ago

Further explanation: http://www.codinghobo.com/re-organising-laravel-applications-with-psr-4/

"require": {
    "laravel/framework": "4.1.*"
},
"autoload": {
    "psr-4": {
        "Acme\\Commands\\": "app/commands",
        "Acme\\Controllers\\": "app/controllers",
        "Acme\\Seeders\\": "app/database/seeds",
        "Acme\\Models": "app/models",
        "Acme\\Repositories\\": "app/repositories",
        "Acme\\Services\\": "app/services"
    }
}