From f9bf442c8d83ad1c87ee75895bb570c99f9162a4 Mon Sep 17 00:00:00 2001 From: Madalin Tache Date: Thu, 28 Jul 2022 22:47:05 +0300 Subject: [PATCH] Fix. --- src/LaravelSendsmsServiceProvider.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/LaravelSendsmsServiceProvider.php b/src/LaravelSendsmsServiceProvider.php index d85377a..297e67a 100644 --- a/src/LaravelSendsmsServiceProvider.php +++ b/src/LaravelSendsmsServiceProvider.php @@ -2,25 +2,22 @@ namespace Niladam\LaravelSendsms; -use Illuminate\Contracts\Support\DeferrableProvider; use Illuminate\Support\ServiceProvider; +use Illuminate\Contracts\Support\DeferrableProvider; use Niladam\LaravelSendsms\Commands\LaravelSendsmsCommand; -class LaravelSendsmsServiceProvider extends ServiceProvider implements - DeferrableProvider +class LaravelSendsmsServiceProvider extends ServiceProvider implements DeferrableProvider { public function register() { $this->app->singleton( LaravelSendsms::class, - fn() => new LaravelSendsms(config("laravel-sendsms")) + fn () => new LaravelSendsms(config("laravel-sendsms")) ); $this->app->bind("laravel-sendsms", LaravelSendsms::class); - $this->app->singleton("command.sendsms", function () { - return new LaravelSendsmsCommand(); - }); + $this->app->singleton("command.sendsms", fn () => new LaravelSendsmsCommand()); $this->commands(["command.sendsms"]); } @@ -46,6 +43,6 @@ public function boot() */ public function provides() { - return ["command.tinker"]; + return ["command.sendsms"]; } }