MacTavish
MacTavish
FFilament
Created by MacTavish on 9/29/2024 in #❓┊help
"There are no commands defined in the "icons" namespace." when called via Widget Class
I have created a custom widget to execute some commands like sitemap generation, build caches, nuke caches. However, I am getting a namespace error. I have tried referencing command class in Artisan::call() but it didn't help. Here's my code
public function buildCaches() : int
{
$exitCode = Artisan::call('filament:optimize');
return $exitCode;
}

public function nukeCaches() : int
{
$exitCode = Artisan::call('filament:optimize-clear');
return $exitCode;
}
public function buildCaches() : int
{
$exitCode = Artisan::call('filament:optimize');
return $exitCode;
}

public function nukeCaches() : int
{
$exitCode = Artisan::call('filament:optimize-clear');
return $exitCode;
}
16 replies
FFilament
Created by MacTavish on 9/24/2024 in #❓┊help
How to have 2 fields per row in full width tab?
I've used Tabs::make('Tabs')->columnSpanFull()->tabs() to create full width tabs. Now I can't seem to have 2 fields per row within the tab. It probably sounds noobish but I just started filament now and been trying to get used with docs but unable to figure it out.
15 replies