LeviBeezy
LeviBeezy
FFilament
Created by LeviBeezy on 5/14/2024 in #❓┊help
getTabs v3.2.77 error: trim(): Argument #1 ($string) must be of type string, Filament\Support\Enums\
Issue resolved by removing published filament-views: /resources/views/vendor/filament
14 replies
FFilament
Created by LeviBeezy on 5/14/2024 in #❓┊help
getTabs v3.2.77 error: trim(): Argument #1 ($string) must be of type string, Filament\Support\Enums\
I'm actually an idiot. The entire problem was that I published filament views and didn't listen to Dan here: https://filamentphp.com/community/danharrin-publishing-views-in-laravel -- I republished views, but ultimately I'd just like to "undo" the published views. Is it as simple as deleting the resources/views/vendor/filament directory?
14 replies
FFilament
Created by LeviBeezy on 5/14/2024 in #❓┊help
getTabs v3.2.77 error: trim(): Argument #1 ($string) must be of type string, Filament\Support\Enums\
14 replies
FFilament
Created by LeviBeezy on 5/14/2024 in #❓┊help
getTabs v3.2.77 error: trim(): Argument #1 ($string) must be of type string, Filament\Support\Enums\
It looks like I'm going to have to put an "Issue" on github with a repo that showcases the error
14 replies
FFilament
Created by LeviBeezy on 5/14/2024 in #❓┊help
getTabs v3.2.77 error: trim(): Argument #1 ($string) must be of type string, Filament\Support\Enums\
No description
14 replies
FFilament
Created by LeviBeezy on 5/14/2024 in #❓┊help
getTabs v3.2.77 error: trim(): Argument #1 ($string) must be of type string, Filament\Support\Enums\
No description
14 replies
FFilament
Created by LeviBeezy on 5/14/2024 in #❓┊help
getTabs v3.2.77 error: trim(): Argument #1 ($string) must be of type string, Filament\Support\Enums\
No description
14 replies
FFilament
Created by LeviBeezy on 5/14/2024 in #❓┊help
getTabs v3.2.77 error: trim(): Argument #1 ($string) must be of type string, Filament\Support\Enums\
I didn't mention, I tried this as well with iconPosition -- or giving no iconPosition at all. The problem persists: ->iconPosition(IconPosition::Before),
14 replies
FFilament
Created by LeviBeezy on 3/21/2024 in #❓┊help
Can we adjust positioning of getOptionsFormComponents?
Bumping this after 24h in hopes there's a solution.
5 replies
FFilament
Created by Dushmanta on 3/22/2024 in #❓┊help
How can I keep an icon in the column label instead of text in the table?
I have a field 'status' in my model
13 replies
FFilament
Created by Dushmanta on 3/22/2024 in #❓┊help
How can I keep an icon in the column label instead of text in the table?
No description
13 replies
FFilament
Created by Dushmanta on 3/22/2024 in #❓┊help
How can I keep an icon in the column label instead of text in the table?
According to the docs, you might want the Icon Column for Tables https://filamentphp.com/docs/3.x/tables/columns/icon
13 replies
FFilament
Created by LeviBeezy on 3/20/2024 in #❓┊help
Dynamic Filename Specification for Export Actions
Putting this in your own Exporter class seems to do the job & allow users to name their own export files:
public function getFileName(Export $export): string
{
$filename = $this->options['fileName'] ?? 'default_export_filename';
return $filename;
}

public static function getOptionsFormComponents(): array
{
return [
TextInput::make('fileName')
->label('What would you like to name your export?'),
];
}
public function getFileName(Export $export): string
{
$filename = $this->options['fileName'] ?? 'default_export_filename';
return $filename;
}

public static function getOptionsFormComponents(): array
{
return [
TextInput::make('fileName')
->label('What would you like to name your export?'),
];
}
5 replies