laravel-mailchimp icon indicating copy to clipboard operation
laravel-mailchimp copied to clipboard

Laravel5 issue

Open ChristopherDosin opened this issue 10 years ago • 12 comments

If i run php artisan config:publish hugofirth/mailchimp i get this error

vagrant@homestead:~/code/dmc$ php artisan config:publish hugofirth/mailchimp
exception 'BadMethodCallException' with message 'Call to undefined method [package]' in /home/vagrant/code/dmc/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:140
Stack trace:

ChristopherDosin avatar Jan 13 '15 22:01 ChristopherDosin

is this resolved?

ghost avatar Feb 11 '15 17:02 ghost

No it is not. Any way to solve it?

skovmand avatar Feb 12 '15 20:02 skovmand

maybe php artisan vendor:publish ?

ChristopherDosin avatar Feb 12 '15 20:02 ChristopherDosin

I tried php artisan vendor:publish --provider="MailchimpServiceProvider"

Same problem occurs: exception 'BadMethodCallException' with message 'Call to undefined method [package]' in /home/vagrant/Code/traeningsprojekt.dk/l5site/storage/framework/compiled.php:4351 Running Laravel 5.0.1

skovmand avatar Feb 12 '15 20:02 skovmand

As I see the problem is: $this->package('hugofirth/mailchimp'); in the MailchimpServiceProvider boot method. So I think this logic is changed..

Halpha avatar Feb 12 '15 21:02 Halpha

And as I see, the config files are changed to objects and the config file in in mailchimp is still an array.

Halpha avatar Feb 12 '15 21:02 Halpha

Oh - also the mailchimp/mailchimp package does not longer exist :-1:

ChristopherDosin avatar Feb 12 '15 21:02 ChristopherDosin

Hm, the mailchim\mailchimp package was no problem on my side. But I have to say that I use the dev-master version in my composer.json.

Halpha avatar Feb 12 '15 21:02 Halpha

The mailchimp/mailchimp package still exists.

skovmand avatar Feb 12 '15 21:02 skovmand

I did my own package for using Mailchimp in L5, if you are interested: https://packagist.org/packages/skovmand/mailchimp-laravel

skovmand avatar Feb 17 '15 11:02 skovmand

Thanks @skovmand - I love it:-)

Halpha avatar Feb 17 '15 21:02 Halpha

Hi Guys, I just wanted to jump in here and say that I have seen this. Unfortunately I am completely flat out at the moment and so haven't had time for any php dev of late. These kind of issues were why I never tagged a release for L5, as I haven't done testing.

Good news is though, that my deadline for this craziness is just around the corner. I'd like to give this package some love, as it does seem that there is an interest in it. Watch this space, in the meantime, if you're on L5 then other packages like the one by @skovmand will probably be the way to go.

Or ... you know.... if anyone wanted to make a PR :smile:

hugofirth avatar Feb 23 '15 17:02 hugofirth