franzose / laravel-smpp

Sending SMS via the SMPP protocol using the Laravel framework
MIT License
37 stars 32 forks source link

Class 'LaravelSmpp\SmppServiceInterface' not found #6

Closed MagentoExp closed 4 years ago

MagentoExp commented 6 years ago

"Cannot instantiate interface LaravelSmpp\SmppServiceInterface"

franzose commented 6 years ago

@MagentoExp you need to register the service provider in order to autowire the interface.

MagentoExp commented 6 years ago

Thanks for the response, It was registered in config/app.php providers array => LaravelSmpp\LaravelSmppServiceProvider::class, But not working as was said.

elias-alea commented 6 years ago

I have faced the same issue, @franzose I tried to register the provider but it doesn't work. in fact, when I try publishing it in laravel, "php artisan vendor:publish", laravel does not even list it among the providers to be published

tphil commented 5 years ago

I have faced the same issue, @franzose I tried to register the provider but it doesn't work. in fact, when I try publishing it in laravel, "php artisan vendor:publish", laravel does not even list it among the providers to be published

I have the same issue

franzose commented 4 years ago

I suppose you've made a workaround already. But just for you to know, it seems that composer dump-autoload has to be run manually after installing the package. I can't say for sure why.

tphil commented 3 years ago

@franzose not really, it's not working even after composer dump-autoload