The command "icons:cache" does not exist.

If I run the command through the artisan facade, I get that error Artisan::call('icons:cache');
No description
Solution:
Yes, this is exactly it. From the blade-ui package serviceprovider: ```php private function bootCommands(): void { if ($this->app->runningInConsole()) {...
Jump to solution
3 Replies
Matthew
Matthew6mo ago
But if I run the command, it works
No description
awcodes
awcodes6mo ago
It’s probably got a safe guard around it to only run in the console.
Solution
DrByte
DrByte6mo ago
Yes, this is exactly it. From the blade-ui package serviceprovider:
private function bootCommands(): void
{
if ($this->app->runningInConsole()) {
$this->commands([
Console\CacheCommand::class,
Console\ClearCommand::class,
]);
}
}
private function bootCommands(): void
{
if ($this->app->runningInConsole()) {
$this->commands([
Console\CacheCommand::class,
Console\ClearCommand::class,
]);
}
}