Answer the question
In order to leave comments, you need to log in
How to run mailgun on laravel?
Laravel 5.2
in mailgun has been registered and verified. Got a key.
added to composer.json:
"require": {
...
"guzzlehttp/guzzle": "~5.3|~6.0",
"mews/captcha": "^2.1"
},
FatalErrorException in PostFile.php line 71:
Class 'GuzzleHttp\Stream\Stream' not found
Answer the question
In order to leave comments, you need to log in
1) Don't use the "composer update" command to install a new package, use composer require guzzlehttp/guzzle
2) Check that there is a guzzlehhtp folder in the vendor folder
3) The following configuration should be in the .env file:
MAIL_DRIVER=mailgun
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAILGUN_DOMAIN=sandboxXXXXXX.mailgun.org
MAILGUN_SECRET=key-XXX
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question