From f0350ee72fe902dd067088f97f1c39a36ca0fecc Mon Sep 17 00:00:00 2001 From: pamenary Date: Tue, 7 Mar 2017 10:28:14 +0330 Subject: [PATCH] bug fix - laravel 5.2 --- README.md | 6 +++--- src/Laravel/SmsServiceProvider.php | 1 - src/Laravel/config/sms.php | 24 +++++++++++++++++++++++- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7e8cac3..4e933d1 100644 --- a/README.md +++ b/README.md @@ -19,17 +19,17 @@ composer update Once composer is finished, you need to add the service provider. Open ```app/config/app.php```, and add a new item to the providers array. ``` -'Pamenary\LaravelSms\Laravel\SmsServiceProvider::class', +Pamenary\LaravelSms\Laravel\SmsServiceProvider::class, ``` Next, add a Facade for more convenient usage. In ```app/config/app.php``` add the following line to the aliases array: ``` -'Sms' => 'Pamenary\LaravelSms\Laravel\Facade\Sms::class', +'Sms' => Pamenary\LaravelSms\Laravel\Facade\Sms::class, ``` Publish config files: ``` -php artisan config:publish livana/sms +php artisan vendor:publish ``` for change username, password and other configuration change ```app/config/sms.php``` diff --git a/src/Laravel/SmsServiceProvider.php b/src/Laravel/SmsServiceProvider.php index aa23b0f..1d11716 100644 --- a/src/Laravel/SmsServiceProvider.php +++ b/src/Laravel/SmsServiceProvider.php @@ -16,7 +16,6 @@ class SmsServiceProvider extends ServiceProvider */ public function boot() { - $this->loadRoutesFrom( __DIR__ . '/routes.php' ); $this->publishes([ __DIR__.'/config/sms.php' => config_path('sms.php'), ]); diff --git a/src/Laravel/config/sms.php b/src/Laravel/config/sms.php index 059e487..0e7e97c 100644 --- a/src/Laravel/config/sms.php +++ b/src/Laravel/config/sms.php @@ -18,84 +18,98 @@ 'from' => '', ], 'aradsms' => [ + 'website' => 'http://arad-sms.ir', 'webService' => 'http://panel.arad-sms.ir/post/send.asmx?wsdl', 'username' => '', 'password' => '', 'from' => '', ], 'ariaideh' => [ + 'website' => 'http://ariaideh.com', 'webService' => 'http://sms.ariaideh.com/API/Send.asmx?WSDL', 'username' => '', 'password' => '', 'from' => '', ], '_0098sms' => [ + 'website' => 'http://www.0098sms.com', 'webService' => 'http://www.0098sms.com/', 'username' => '', 'password' => '', 'from' => '', ], '_500sms' => [ + 'website' => 'http://500sms.ir', 'webService' => 'http://500sms.ir/webservice/smsService.php?wsdl', 'username' => '', 'password' => '', 'from' => '', ], 'adpdigital' => [ + 'website' => 'http://adpdigital.com/services', 'webService' => 'http://500sms.ir/webservice/smsService.php?wsdl', 'username' => '', 'password' => '', 'from' => '', ], 'afe' => [ + 'website' => 'http://afe.ir', 'webService' => 'http://www.afe.ir/WebService/webservice.asmx?WSDL', 'username' => '', 'password' => '', 'from' => '', ], 'afilnet' => [ + 'website' => 'http://www.afilnet.com', 'webService' => 'http://www.afilnet.com/ws/v2/index.php?wsdl', 'username' => '', 'password' => '', 'from' => '', ], 'amansoft' => [ + 'website' => 'http://sms.amansoft.ir', 'webService' => 'http://sms.amansoft.ir/API/Send.asmx?WSDL', 'username' => '', 'password' => '', 'from' => '', ], 'arkapayamak' => [ + 'website' => 'http://www.arkapayamak.ir', 'webService' => 'http://api.payamak-panel.com/post/send.asmx?WSDL', 'username' => '', 'password' => '', 'from' => '', ], 'asanak' => [ + 'website' => 'http://asanak.ir', 'webService' => 'http://panel.asanak.ir/webservice/v1rest/sendsms', 'username' => '', 'password' => '', 'from' => '', ], 'barmanpayamak' => [ - 'webService' => 'http://api.payamak-panel.com/post/send.asmx?WSDL', + 'website' => 'http://asanak.ir', + 'webService' => 'http://www.barmanpayamak.ir', 'username' => '', 'password' => '', 'from' => '', ], 'barzinsms' => [ + 'website' => 'http://barzingostar.ir', 'webService' => 'http://barzinsms.ir/post/send.asmx?wsdl', 'username' => '', 'password' => '', 'from' => '', ], 'bearsms' => [ + 'website' => 'http://www.bearsms.com', 'webService' => 'http://app.bearsms.com/index.php?app=ws', 'username' => '', 'password' => '', 'from' => '', ], 'bestit' => [ + 'website' => 'http://panelsms.bestit.co', 'webService' => 'http://panelsms.bestit.co/WsSms.asmx?wsdl', 'username' => '', 'password' => '', @@ -103,48 +117,56 @@ 'key' => '', ], 'bulutfon' => [ + 'website' => 'http://bulutfon.com', 'webService' => 'https://api.bulutfon.com/messages', 'username' => '', 'password' => '', 'from' => '', ], 'caffeweb' => [ + 'website' => 'http://caffeweb.com', 'webService' => 'http://sms.caffeweb.com/post/send.asmx?wsdl', 'username' => '', 'password' => '', 'from' => '', ], 'chapargah' => [ + 'website' => 'http://chapargah.ir', 'webService' => 'http://panel.chapargah.ir/API/Send.asmx?WSDL', 'username' => '', 'password' => '', 'from' => '', ], 'chaparpanel' => [ + 'website' => 'http://chaparpanel.ir', 'webService' => 'http://87.107.121.52/post/send.asmx?WSDL', 'username' => '', 'password' => '', 'from' => '', ], 'difaan' => [ + 'website' => 'http://csmsplus.mobilinkworld.com', 'webService' => 'http://csmsplus.mobilinkworld.com/', 'username' => '', 'password' => '', 'from' => '', ], 'dot4all' => [ + 'website' => 'http://sms.dot4all.it', 'webService' => 'http://sms.dot4all.it/sms/', 'username' => '', 'password' => '', 'from' => '', ], 'esms24' => [ + 'website' => 'http://esms24.ir', 'webService' => 'http://esms24.ir/sendSmsViaURL.aspx', 'username' => '', 'password' => '', 'from' => '', ], 'faraed' => [ + 'website' => 'http://smspanel.faraed.com', 'webService' => 'http://panelesms.net/SendMessage.ashx', 'username' => '', 'password' => '',