Propaganistas / Laravel-Phone

Phone number functionality for Laravel
https://laravel-phone.herokuapp.com/
MIT License
2.72k stars 215 forks source link

Service Provider not auto discovered #89

Closed mohamedsabil83 closed 6 years ago

mohamedsabil83 commented 6 years ago

First, thank you for the valuable package.

I install it in Laravel5.6 and works like charm in local. But, when uploading to my hosting, I need to add it to the provider section in config/app or it returns an error as shown in attached picture. screenshot from 2018-07-02 22-02-00

Propaganistas commented 6 years ago

If auto-discovery is working locally then there's something sketchy going on in your live environment and I'm afraid it's unrelated to this package.

Some thoughts:

mohamedsabil83 commented 6 years ago
Propaganistas commented 6 years ago

I'm afraid I can't reproduce. I got several applications running this package on different hosting providers without any problems, and also a freshly spinned up instance runs just fine... For some reason or the other the service provider isn't registered in your environment.

In any case, this shouldn't pose a problem. Just add the Service Provider in config/app.php as you mentioned. If the provider is already registered by auto-discovery the additional line will just be ignored and won't be registered twice.

mohamedsabil83 commented 6 years ago

Yes, I did that and it works like a charm. Just inform you to check if it was a bug.