Filament

F

Filament

A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire

Join

Table Search Width Adjustment

Can I adjustment for table search field?for example I want to set width to 700px.

nested groups in tables

Hallo there, I am new to Filament (and laravel at all) and wonder, if there is any way to apply multiple groups to table rows at the same time. like: grouping by month of a date-column and additionally grouping by the week our day (or even both) month: June -- calendar week: 23...

How can use Select with translation by lang file on select Options

How can use Select with translation by lang file on select Options `use Translatable; use Filament\Resources\Concerns\Translatable; ...

Getting Create New Record button in table header to open in a modal

I am having a tough time getting the Create/Edit form of a resource to open inside a modal instead of a separate page. I can get modals to work for custom actions, but I am not able to get the create and edit versions to the same. ChatGPT is suggesting this:...

selectFormComponent is not defined

why this error occurs on the server selectFormComponent is not defined this occurs when I just update the code and deploy on the server what I have done delete old assets ```sudo rm -rf public/vendor/livewire...

Map based on provided viewport data

I need a lightweight map that can display the viewport I've provided.

Mail verification

Hi everyone! 👋 I’m working on a Filament app where I want to allow guest access to the panel (so I’ve removed the auth middleware). However, I also want to enable email verification using Filament’s built-in feature. The problem is: as soon as I activate email verification, guests (unauthenticated users) are redirected to the verification prompt page, which obviously fails because they are not logged in — leading to errors....

DateTime Error when using 'Spatie Settings' plugin

I'm getting this error when I try to edit the settings for my site Object of class DateTime could not be converted to string - Using https://filamentphp.com/plugins/filament-spatie-settings ManageCompetitions.php page ``` Forms\Components\TextInput::make('name')...

Adding a custom action component through a ViewColumn

I've created a action component in which I have included a method : ```php public function joinAction(): Action {...

maxlength() - validate or restrict

Am I imagining this, or does sometimes a TextInput field physically restrict the number of characters entered with maxlength(), and sometimes it doesn't ?

Problem with createOptionUsing in Single Select

I have a select that can be single or multiple. I also want to add an option to the select. The options arent directly related to a table. ```...
No description

Fileupload order not correct

I noticed that when uploading new files, they are appended and not added to the state array in the correct order. I'm currently on the edit page and the 2 media items you see are already saved in the database. When I add a new file in the middle and dump the state in ->afterStateUpdated() the order is already incorrect. The new item is not in the middle, but at the end of the array. ```php Forms\Components\FileUpload::make('media')...
No description

stacked Imagecolumn with tooltip/title?

Hey! I'm doing exactly the use case from the doc: https://filamentphp.com/docs/3.x/tables/columns/image#stacking-images stacking images representing the user avatars. I saw that one can add extra-attributes like this...

Can you set field labels in the model or resource?

I am sure this is going to be a stupid question but I find myself having to write the labels for fields over and over (eg in the form, the table, etc). Is there no way to set the labels for a field once in the resource and then have them automatically applied rather than having to use ->label over and over? Eg for TextInput::make('title'), can I specify either in the model or the resource that 'title' has a label of 'Your Title' rather than constantly having to do TextInput::make('title')->label('Your Title')...

Open Modal after/before Creating record

Hi there, Is there a way to open a modal after or before a record is persisted in the database? For example, I'd like to trigger a custom modal either right before saving or immediately after the record is created/updated. Has anyone implemented something like this with Filament actions or hooks?...

Is there a way to enable sortable on a column that is hidden?

I have a table that has a 'name' column; (in model; name concats first name and last name) TextColumn::make('name') ->searchable(['first_name', 'last_name']) ->sortable(['last_name']),...

disabled button afterState on a Modal and automatically save after upload?

Hi Guys!How to set disabled button afterState on a Modal and Why when i upload it's directly save to my Db?
No description

Place an Action button next to the modal heading.

Hi. I need to place an custom action button on an modal, next to the heading. Can anyone tell how to do that. i tried "headerActions" but that was not same level (horizontally) as heading. Image: I need an button on the red mark....
No description

Example of using chart in custom widget

I am baffled on how to implement a chart in a custom widget. I am trying to create a chart with different filteres and some additional output of data in the widget. I can not find an example on how to initilize a chart in my custom widget blade template....