Comments (7)
On what event are you receiving this error? This exception is thrown in the mailgun-php package.
from mailgun.
I think it's because of how to get config variable in mailgun.
here is the snippet:
$this->from = Config::get('mailgun::from'); (Line 66)
I can solve it by changing Config::get('mailgun::from') to Config::get('mailgun.from')
(Laravel 4 use . instead of ::) @nu1ww.
Notes: change all ::
to .
in vendor/bogardo/mailgun/src/Bogardo/Mailgun/Mailgun.php
I know it is bad practice to changing file in vendor, but It works.
from mailgun.
As far as I can tell, support for Laravel 4.2 is broken in this package because of this issue.
So I've forked this repo and reset it back to the last commit where the package supported Laravel 4.x and changed all of the config keys to use .
as a separator.
If @Bogardo can accept the pull request my fork into the develop
branch (if I'm right in thinking that's the branch for legacy Laravel stuff). Or potentially if ::
is used on a Laravel version I don't know about, merge it into a new branch called 4.2
.
Thanks!
from mailgun.
I'm pretty sure Laravel 4.2 uses a ::
for accessing a package configuration file.
See https://laravel.com/docs/4.2/packages#package-configuration
Or am I missing something?
from mailgun.
Ahhhh OK forgive me not understanding package config completely. As the artisan command is broken in older versions of this because it's not tagged properly (I think this is fixed in latest), I didn't know where to put it. I was getting the same thing as #53, and didn't think to check the README history.
I've fixed it for myself now by moving the config to app/config/packages/bogardo/mailgun/config.php
instead of app/config/mailgun.php
as the README states.
from mailgun.
Please make sure you are using the correct version of this package for your version of Laravel.
If you are on Laravel 4.2, use version 3.1.*
of this package.
from mailgun.
Yep using 3.1.7. It's just me and everybody else in this issue misinterpreting the new README file. So you can probably close this.
from mailgun.
Related Issues (20)
- Clarification please regarding handling of http_response_body content and possibly guzzle and/or env setting? HOT 3
- Undefined Method error
- Type error: Argument 1 passed must be an instance of App\Http\Controllers\Message HOT 1
- Example send email to mailing list HOT 1
- Troubles with the API request, deprecated usable of mailgun-php lib HOT 2
- .
- Trying to get property of non-object HOT 1
- Update nesbot/carbon dependency HOT 1
- Cannot install php-http/guzzle6-adapter HOT 2
- Switching endpoint HOT 2
- Using full api from mailgun-php HOT 2
- Install on Laravel 5.8? HOT 4
- ERROR when passing a variable to to() HOT 1
- new release 5.1.0 with Carbon 2 is not available via composer and isn't on packagist HOT 1
- Error installing this package on Laravel 5.8 (clunky workaround included...can we fix the package?) HOT 1
- Upgrade Laravel 6 HOT 1
- Unable to install php-http / guzzle6-adapter in symfony 4.1
- Emails are not being sent or received.
- Mailgun custom notification channel
- specific attachment to each recipient in batch emails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailgun.