softon / sms

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5(Updated to work with Laravel 5.5).Currently supported Gateways Clickatell, MVaayoo, Gupshup, SmsAchariya, SmsCountry, SmsLane, Nexmo, Mocker / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.
http://softon.github.io/sms/
MIT License
45 stars 27 forks source link

Laravel 5.5 Support ??? #8

Closed salahy2 closed 6 years ago

salahy2 commented 6 years ago

I am getting error when using it in Laravel 5.5 same code worked perfectly on 5.2

Target [Softon\Sms\Gateways\SmsGatewayInterface] is not instantiable while building [\Softon\Sms\Sms].

akaamitgupta commented 6 years ago

@softon I am getting the same error in L5.4 also.

akaamitgupta commented 6 years ago

@softon @salahy2 I tried to edit the SmsServiceProvider.php file as given below -

    $this->app->bind('sms', 'Softon\Sms\Sms');

    $this->app->bind('Softon\Sms\Gateways\SmsGatewayInterface','Softon\Sms\Gateways\\'.$gateway.'Gateway');
    $this->app->bind('Softon\Sms\SmsViewInterface','Softon\Sms\Sms'.$view.'View');

here I have removed the initial backslash \from the namespace and it started working.

musamamasood commented 6 years ago

Hello, I am getting same message with L5.5. Is there any official solution for it?

musamamasood commented 6 years ago

Is it possible that I can use multiple custom gateway? Also is it possible to setup blade template for multiple sms message?

Thanks.

gr8shivam commented 6 years ago
  1. Multiple Custom Gateways: Yes, you can configure them easily.
  2. Blade Template: Well not exactly in a blade template as it ain't required for a small message. Though you can use pre-defined notification templates to achieve the same use case.
musamamasood commented 6 years ago

Thanks.