Filament

F

Filament

Filament is a collection of beautiful full-stack components for Laravel.You can get help using it on our Discord.

Join

Filament repeater pop up

I have a filament repeater and i want to open a popup to show more details about the card. I prefer not to use blade file and achieve it with built in filament functionality. Can someone help me?
Solution:
Use an action on the repeater

Revert togglecolumn $state if condition unsatisfied.

I have togglecolumn on table. when ``` ToggleColumn::make( 'confirmed' ) ->label( 'Confirmed' )...

How to add an interactive map in Filament?

I am trying to add a map that I can choose with polygon as in the picture For this, I created a field with a class and added my necessary codes to the blade file. But I cannot run it. the map does not load....
No description

inertia component

Hi can you show inertia react components like you can blade views in Filament? Thanks

Custom Pages

`public static function getPages(): array { return [ 'index' => Pages\ListEvents::route('/'), 'create' => Pages\CreateEvent::route('/create'),...

1 Icon Button for switching Dark/Light Mode

it is possible to have only 1 icon button for switching dark & light mode
No description

Filament Exporter dinamicly add columns to excel from relationship?

Hi! Maybe someone can help? How to pass
Model $record
Model $record
...

Is it possible to add pages to the global search results?

I can now add records from resources to the global search results, but is it also possible to add pages to the results? Users can then better navigate through the application....

Filament shield plugin not working?

I am using Filament Shield. While resources are correctly marked as forbidden based on permissions, How can I handle authorization for resources that share the same model name.Example my user resource and customer resource users user model when i restrict user resource for one role , i lose both the resources .

Sort one to many TextColumn based on formatted state?

Hey team, I am having another moment... is there a way to sort a one to many text column based on the concatenated string? Column: ```swift TextColumn::make('citizenships.name')...
Solution:
Can’t you add the virtual column to the table with the data and then use that column for sorting?

Can't access tenant in Test class?

A simple test like this: ```php public function test_renders_successfully() {...

Using alpine to update a Form Field using an x-on event listener.

I feel like I'm missing something simple. If I have two form fields and want to use alpine to update another field 'on change', how can I do this? I want the interaction to be instant, without the roundtrip form the server (or at least to happen at the same time so it feels instant). Clearly I cannot x-model here as it doesn't work or I'm setting the value incorrectly. ```php...

Uploading images in RichEditor on a custom page, triggers the component with the form to refresh

All code examples are attached as screenshots. My situations is basically this: I have a custom page which is a Kanban with multiple cards. On clicking a card, I open a modal with info about that card and a form inside. The modal is a livewire component with an internal property tarefa_id (task_id) which is initialized as null (this is important later), since there's no card clicked yet....
No description

Add roles / permissions per team for user

Hello, I have a case where I use spatie permissions, and I want to be able to give user roles and permissions on a team, can someone help with with the set of relations I have to do? I have:...
No description

Svg by name "filament-shield::filament-shield.nav.role.icon" from set "default" not found.

I install a Filament shield plugin. I get this error. Svg by name "filament-shield::filament-shield.nav.role.icon" from set "default" not found. how can i fix it ?...

I need to change DatePicker language

Hello guys. I need to change Forms\Components\DatePicker language. How can I do this?
Solution:
This is exactly what I need. Thank you very much
No description

browsershot / laravel-pdf on Win 11

I know that this is not filament content, but i will try power of this comunity. Anybody have instaled browsershot / spatie laravel-pdf on Win 11 ??? .... I'm trying a lot of ways.... but without success ....

DateTimePicker 24-Hour Clock

Greetings - I am trying to utilize the date-time-picker but looking to use a 24hr clock rather than AM/PM - is there any functionality to change this? I cannot find anything in the docs anywhere to indicate this as being an option. Thanks!...

Navigation group translated label and sort

Hi, I have weird behavior that I can't understand at all, maybe someone here is able to explain it? I define my navigation groups as follows ```php...
Solution:
Put it like this, you need to wrap in fn()
NavigationGroup::make()
->label(fn (): string => __('labels.third_parties')),
NavigationGroup::make()
->label(fn (): string => __('labels.third_parties')),
...
No description

Triggering afterStateUpdated() with $set()?

Hi, I'm trying to to use the afterStateUpdated() method on a TextInput Field, that has been updated/filled by the $set() method from another field. Updating the value using $set() does not seem to trigger the afterStateUpdated() method (unless I'm doing something wrong). Is this not possible? Or how can I achieve this?