Filament

F

Filament

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

Join

Add breadcrumbs to custom page

I have been looking in to this but not found anything yet. Is there a way to add breadcrumbs to a custom page?
Solution:
Hi, I think you can extend getBreadcrumbs from Filament\Resources\Pages\Page to return an array with url as key and label as value

Multi record form

Hello, I need to display in edit form multiple records one single TextInput. What I'm trying to make is Translations page List/Edit/Delete resource. Each translation have [id, key, language_id, value, tenant_id]. Visually it MUST look like I open edit form for a KEY and there is displayed ALL records with same KEY. All records must be grouped by tenants (i manage multiple sites in single CMS). Inside record each TextInput represents one record. I have reached this with mutateFormDataBeforeFill (in comments) and with two repeaters. ``` Repeater::make('translations') ->schema([ Repeater::make('records') ->schema([ TextInput::make('value')->label(''),...

Enums for datalist attribute values

Hello Filament community, I am really liking the use of enums in Filament. I wanted to ask if I can use them in datalist attributes in the form builder too? And if so, what would be best practices at the moment? Thank you....
Solution:
What about
->datalist(fn() => collect(Status::cases())->mapWithKeys(fn ($case) => [$case->value => $case->label()]))
->datalist(fn() => collect(Status::cases())->mapWithKeys(fn ($case) => [$case->value => $case->label()]))
...

How to make password text input copyable?

I have this package installed but not working.. does anyone tried this? `use Rawilk\FilamentPasswordInput\Password; Password::make('password')...

2 step auth with code recovery v4

Errors display only after enable code recovery option ->recoverable() Maybe I'm doing something wrong? ...
No description

Filament's Export function creating duplicates.

TL;DR : Filament's export action creating duplicates when exporting larger record sets. I have a very simple model, resource, and exporter. However when I try to export any more than a hundred or so, it mangles the data and returns duplicate records. I am using :...
Solution:
Updating here as well. If I am using Dennis' plugin I can just do this and it fixes the duplication. ```swift ExportBulkAction::make() ->exports([...

Builder - disable delete action on some items (default items)

I’m trying to disable the delete action for the default items defined using ->default([...]) in the builder. I’ve reviewed the code in builder.blade.php but couldn’t find a way to achieve this.

Table recordActions / Action condition

I want to create a condition on deleteAction, if $record->is_default then deleteAction button is not available. But on V4 it doesn't work properly. Is this a bug issue? ```php ... ->recordActions([...
No description

Issue with table, on load both the filter modal and grouped actions dropdown open

So this issue began after i updated from v3.2.117 to the latest (v3.3.21) . any idea why is it happening or how to fix?...
No description

Form actions in custom Login page

Hey, I'm struggling to find the way to render the form with custom actions I saw the "getFormContentComponent" function but have no clue how to render it in a custom view Thx for any help!...
Solution:
I have never tried that, what does the request logs state, if you change it to ->action('authenticate') does it work?

Column Spans On Form within Grid

Hello, I have an issue while using Grid from forms. For some reason my two fields are not taking 50-50 space within. In image is those spacings....
No description

RelationManger `save` isn't working

Got an issue with one of the RelationManagers. The EditAction doesn't seem to save the data. I do get the notification for successfully saved, but don't see an UPDATE query in the logs. I am logging all the queries during save, but i only see SELECT queries being executed when clicking on the save button of the EditAction. Not sure why this is happening. Doesn't seem to happen on other RelationManagers

bg-[color] not applying

bg-black does not work, but only bg-black/50 works. I removed tailwind 4 from dependencies and added 3 by follwing the docs.
Solution:
adding './resources/views/livewire/*.blade.php', this to panel specific tailwind config fixed the isssue......

I Can't Install filament v4 beta

```composer require filament/filament:"^4.0"
The "4.0" constraint for "filament/filament" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints ./composer.json has been updated Running composer update filament/filament Loading composer repositories with package information...
Solution:
You shouldn't use the exact version, because it will never update to a new version unless you change it manually. Please try this:
composer require filament/filament:~4.0
composer require filament/filament:~4.0
...

Grid and Columns in v4

I am a little confused with the new grid & columns format in v4, because when I use grid columns the results are not the same. Can you help me? Code : public static function configure(Schema $schema): Schema...
Solution:
If that's all you have your Grid seems unnecessary. You can put ->columns(3) on the Form itself.
No description

Can I change this '+' sign to 'add new' in createOptionForm() of Select

can I change this '+' sign to 'add new' and edit icon to 'edit' in createOptionForm() of Select?
No description

Select multiple - fill

Is there a way to fill the field and its shows the updated select options? Im using a filament form on a livewire component, and that form e a wizard, on the first step and user input a value and consult a api to prefill the data on the next steps, i can already fill all the data with this...

Image Not Displaying in Edit Form

Hi Filament colleagues, When I upload an image in a form, the preview shows up correctly and everything is saved properly. In the table view (thumbnail), everything also looks fine. However, when I go to edit the record, the image does not display properly—it just shows a loading spinner (it says "loading...")....
No description

Custom colors

Hi, I'm struggling to figure out how to add new colors to Tailwind. I've created a custom theme as shown on the documentation (https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme)....

Dynamic Form fields (Something like Google Forms) -> is it possible/practical?

A customer needs their users to fill-up some forms for the information to go a simple table. I'm wondering about developing this using Filament, but like the approach of Google Forms/Microsoft Forts, I would like to offer the customer some control over the form fields so they can decide which questions to ask (the user can pick some questions for other users to answer). I can't quite see yet how filament would allow the user, from the front end, to edit/create forms and the forms-fields. Maybe there is a way using the Builder Field, has anyone ever tried to solve this problem do you know a good approach even if is not using Filament? Maybe this is a good idea for a Filament plugin?...