@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function up(): void |
| 17 | 17 | { |
| 18 | - Schema::create(SmsReport::TABLE, function (Blueprint $table) { |
|
| 18 | + Schema::create(SmsReport::TABLE, function(Blueprint $table) { |
|
| 19 | 19 | $table->integerIncrements('id'); |
| 20 | 20 | $table->string('mobile')->nullable(); |
| 21 | 21 | $table->string('message', 510)->nullable(); |
@@ -14,6 +14,6 @@ |
||
| 14 | 14 | use HoomanMirghasemi\Sms\Http\Controllers\SmsController; |
| 15 | 15 | use Illuminate\Support\Facades\Route; |
| 16 | 16 | |
| 17 | -Route::prefix('laravel/sms')->group(function () { |
|
| 17 | +Route::prefix('laravel/sms')->group(function() { |
|
| 18 | 18 | Route::get('get-sms-list', [SmsController::class, 'getList'])->name('sms.getList'); |
| 19 | 19 | }); |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | 'login' => data_get($this->settings, 'username').'/'.data_get($this->settings, 'domain'), |
| 79 | 79 | 'password' => data_get($this->settings, 'password'), |
| 80 | 80 | 'cache_wsdl' => WSDL_CACHE_NONE, // -No WSDL Cache |
| 81 | - 'compression' => (SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | 5), // -Compression * |
|
| 81 | + 'compression' => (SOAP_COMPRESSION_ACCEPT|SOAP_COMPRESSION_GZIP|5), // -Compression * |
|
| 82 | 82 | 'trace' => App::environment(['local', 'staging', 'testing']), // -Optional (debug) |
| 83 | 83 | ]); |
| 84 | 84 | } catch (SoapFault $soapFault) { |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | 'wsdl_url' => 'http://portal.avanak.ir/webservice3.asmx?WSDL', |
| 54 | 54 | ], |
| 55 | 55 | ], |
| 56 | - 'dont_show_sms_list_page_condition' => function () { |
|
| 56 | + 'dont_show_sms_list_page_condition' => function() { |
|
| 57 | 57 | return config('app.env') == 'production'; |
| 58 | 58 | }, |
| 59 | 59 | ]; |
@@ -42,32 +42,32 @@ |
||
| 42 | 42 | $this->app->singleton('sms', SmsManager::class); |
| 43 | 43 | $this->app->singleton('voiceCall', VoiceCallManager::class); |
| 44 | 44 | |
| 45 | - $this->app->bind(FakeSmsSender::class, function () { |
|
| 45 | + $this->app->bind(FakeSmsSender::class, function() { |
|
| 46 | 46 | $config = config('sms.drivers.fake') ?? []; |
| 47 | 47 | |
| 48 | 48 | return new FakeSmsSender($config); |
| 49 | 49 | }); |
| 50 | 50 | |
| 51 | - $this->app->bind(Kavenegar::class, function () { |
|
| 51 | + $this->app->bind(Kavenegar::class, function() { |
|
| 52 | 52 | $config = config('sms.drivers.kavenegar') ?? []; |
| 53 | 53 | $kavenegarApi = new KavenegarApi($config['apiKey']); |
| 54 | 54 | |
| 55 | 55 | return new Kavenegar($config, $kavenegarApi); |
| 56 | 56 | }); |
| 57 | 57 | |
| 58 | - $this->app->bind(Magfa::class, function () { |
|
| 58 | + $this->app->bind(Magfa::class, function() { |
|
| 59 | 59 | $config = config('sms.drivers.magfa') ?? []; |
| 60 | 60 | |
| 61 | 61 | return new Magfa($config); |
| 62 | 62 | }); |
| 63 | 63 | |
| 64 | - $this->app->bind(SmsOnline::class, function () { |
|
| 64 | + $this->app->bind(SmsOnline::class, function() { |
|
| 65 | 65 | $config = config('sms.drivers.smsonline') ?? []; |
| 66 | 66 | |
| 67 | 67 | return new SmsOnline($config); |
| 68 | 68 | }); |
| 69 | 69 | |
| 70 | - $this->app->bind(Avanak::class, function () { |
|
| 70 | + $this->app->bind(Avanak::class, function() { |
|
| 71 | 71 | $config = config('sms.drivers.avanak') ?? []; |
| 72 | 72 | |
| 73 | 73 | return new Avanak($config); |