Dymantic / laravel-instagram-feed

150 stars 51 forks source link

Unresolvable dependency resolving [Parameter #0 [ <required> $config ]] in class Dymantic\InstagramFeed\Instagram #15

Closed mahesh0055 closed 3 years ago

mahesh0055 commented 3 years ago

I tried using your package but now its giving this error. I can't seem to fix this issue. Help please. Capture e.

michaeljoyner commented 3 years ago

Hi @mahesh0055, I'm sorry you have run into this. Can you share a bit more info? The issue is that Laravel can't create an instance of the Instagram class, apparently because the config is missing. Can you check if config('instagram-feed') actually returns your config and not null?

mahesh0055 commented 3 years ago

I did a fresh install and now it's working. Thank you very much for your help.

michaeljoyner commented 3 years ago

That's great, thanks for letting me know.

ley-288 commented 2 years ago

Hi i recieve the same error using php 7, version "^2.0", laravel 5.6

michaeljoyner commented 2 years ago

Hi @ley-288, please check that you have published the config file and that the values are getting correctly loaded.

ley-288 commented 2 years ago

Hi yes 'vendor:publish' created the config file. i found a work-around to that error but it must be causing other issues because the key doesn't return on callback, and even following guide instructions, user returns to a 404 page.

Screenshot 2022-04-07 at 15 49 13
ley-288 commented 2 years ago

Resolved issue completely. Just needed to manually add package to Bootstap cache packages.php and services.php!

michaeljoyner commented 2 years ago

That's great, thanks for letting me know. Sorry I wasn't able to provide more help.