您需要将services.php配置保留为默认值:
'mailgun' => [ 'domain' => env('MAILGUN_DOMAIN'), 'secret' => env('MAILGUN_SECRET'), ],
然后在.env中你需要放:
MAILGUN_DOMAIN=yourdomain MAILGUN_SECRET=yoursecret