Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 5.5 Support ??? #8

Closed
salahy2 opened this issue Sep 18, 2017 · 6 comments
Closed

Laravel 5.5 Support ??? #8

salahy2 opened this issue Sep 18, 2017 · 6 comments

Comments

@salahy2
Copy link

salahy2 commented Sep 18, 2017

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
Copy link

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

@akaamitgupta
Copy link

akaamitgupta commented Oct 3, 2017

@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
Copy link

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

@musamamasood
Copy link

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

Thanks.

@gr8shivam
Copy link

  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
Copy link

Thanks.

Repository owner deleted a comment from gr8shivam Nov 19, 2017
Repository owner deleted a comment from gr8shivam Nov 19, 2017
@softon softon closed this as completed Nov 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants