F
Filament12mo ago
Matthew

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
MatthewOP12mo ago
But if I run the command, it works
No description
awcodes
awcodes12mo ago
It’s probably got a safe guard around it to only run in the console.
Solution
DrByte
DrByte12mo 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,
]);
}
}
Want results from more Discord servers?
Add your server