diff --git a/src/BladeIconsServiceProvider.php b/src/BladeIconsServiceProvider.php index fb7e905..3be5a62 100644 --- a/src/BladeIconsServiceProvider.php +++ b/src/BladeIconsServiceProvider.php @@ -90,6 +90,14 @@ private function bootCommands(): void Console\CacheCommand::class, Console\ClearCommand::class, ]); + + if (method_exists($this, 'optimizes')) { + $this->optimizes( + 'icons:cache', + 'icons:clear', + 'blade-icons' + ); + } } }