composer autoload in laravel

  autoload, composer-php, laravel, psr-4

Looking at composer.json file in laravel project,
I can find below

    "autoload": {
    "psr-4": {
        "App": "app/"
    "classmap": [

as far as I know App:”app/” means a name space starts with App has its source files under the app/ directory and it follows psr-4.

however, there are ton’s of packages under the vendor directory for instance packages start with Illuminate..
Are they under psr-4 or classmap? why are they not declared in the composer.json file?

Source: Laravel StackOverflow

Leave a Reply