How can I use a class from vendor folder in laravel project
问题 I am trying to include guzzle http client from a vendor folder and using composer. Here is what I have tried so far. Location of guzzle http client file vendor/guzzle/guzzle/src/Guzzle/Http/Client.php In composer.json file I included "autoload": { "classmap": [ "database/seeds", "database/factories" ], "files":["vendor/guzzle/guzzle/src/Guzzle/Http/Client.php"], "psr-4": { "App\\": "app/" } }, The I ran the command composer dumpautoload . In my controller I am trying to call an api end point