Reputation: 1
I have App running on Laravel 5.2.
It works fine until it tries to send emails through MailGun, and shows this error : Web App Error
When I try to add Guzzle through SSH, I have this error below : Guzzle CLI Install Error
I'm lost, because I don't know much of Laravel, may anyone please help !
Upvotes: 0
Views: 288
Reputation: 12206
The reason you are getting this error is because Guzzle has not been installed in the first place because you are getting an error when trying to install it via composer.
Could not scan for classes inside database which does not appear to be a file nor a folder
It seems that you are trying to load classes that are present in your composer.json file but not in your project directory.
Open your composer.json file, you should see something like this:
"classmap": [
"database", /// <--- this line or similar
],
You should first fix this error before running composer install
again.
Upvotes: 0
Reputation: 931
You have to install Guzzle as required by Laravel documentation.
The API based drivers such as Mailgun and Mandrill are often simpler and faster than SMTP servers. All of the API drivers require that the Guzzle HTTP library be installed for your application. You may install Guzzle to your project by adding the following line to your composer.json file: "guzzlehttp/guzzle": "~5.3|~6.0"
Then you have to run a
composer update
Or you can simply run in terminal
composer require "guzzlehttp/guzzle": "~5.3|~6.0"
Upvotes: 0