diff --git a/src/FilamentEmailServiceProvider.php b/src/FilamentEmailServiceProvider.php index 68a2ced..045c694 100644 --- a/src/FilamentEmailServiceProvider.php +++ b/src/FilamentEmailServiceProvider.php @@ -2,12 +2,12 @@ namespace RickDBCN\FilamentEmail; +use Illuminate\Console\Scheduling\Schedule; use Illuminate\Support\Facades\Config; -use Spatie\LaravelPackageTools\Package; use RickDBCN\FilamentEmail\Models\Email; -use Illuminate\Console\Scheduling\Schedule; -use Spatie\LaravelPackageTools\PackageServiceProvider; use RickDBCN\FilamentEmail\Providers\EmailMessageServiceProvider; +use Spatie\LaravelPackageTools\Package; +use Spatie\LaravelPackageTools\PackageServiceProvider; class FilamentEmailServiceProvider extends PackageServiceProvider { @@ -36,7 +36,7 @@ public function bootingPackage() $modelClass = Config::get('filament-email.resource.model') ?? Email::class; $class = get_class(new $modelClass); if (class_exists($class)) { - $schedule->command('model:prune --model="' . $class . '"')->daily(); + $schedule->command('model:prune --model="'.$class.'"')->daily(); } }); }