Filament

F

Filament

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

Join

custom filter blade - cant figure out how

I have a custom page with query logic, and ultimately ends up in my view like this ```php <x-filament-panels::page> <div class="mb-5 grid grid-cols-1 gap-4 sm:grid-cols-2">...

Multiple Table Pagination And Sorting

Hello, Is there a way to paginate and search for multiple tables on page but to have different query strings? Example...

Table TextColumn of a toggle how to display Enabled / Disabled instead of 1 / 0?

Hi, as the title says really, I have a column that is stored as a simple 1 / 0 in the DB, but I need it to display to the viewer as Enabled / Disabled. My code looks like this: Tables\Columns\TextColumn::make('enable_live') ->badge() ->color(fn (string $state): string => match ($state) {...
Solution:
Ah, I found the answer, ->formatStateUsing sorry to bother you all 🙂

required() methods triggers a client side validation instead of laravel one

when I submit my form I get a tooltip that says please select an item, I want it to trigger the validation and not show this tooltip

Upload images to the page, the project uses https

When I try to upload the image to the page to add this image, the upload fails because the project uses https and the links in the images request http
No description

Auto set minutes to 00 when an hour is set with native TimePicker

I've got this TimePicker: ```php TimePicker::make('start_time') ->seconds(false)...
Solution:
According to this SO comment, this is not possible because the field doesn't even have a value when it's partially filled. https://stackoverflow.com/a/58669146...

CreateAction::make()->before() not being triggered.

Ok I am having a seriously stupid moment... for some reason this simple little before() call is not being fired at all O_O any ideas? The record gets created just fine... but no dd(). Which means I cant fire off other functions to do stuff. I am seriously having a brain fart. doco: https://filamentphp.com/docs/3.x/actions/prebuilt-actions/create#lifecycle-hooks ...

🧩 How to Use reorderable() with Pivot Table Columns in Many-to-Many Relationships?

Hi! I’m trying to implement row reordering using Filament’s ->reorderable() method, but the order I need to update lives in a pivot table of a many-to-many relationship. Has anyone successfully used ->reorderable() to update an order column in a pivot table? For example, suppose we have Project and Task models with a many-to-many relationship, and the pivot table project_task contains an order column. I want to be able to reorder tasks within a project and have it update project_task.order....

Modal opened without Action

is it possible to use something like this: public function openModalAction(): Action { return Action::make('openModalAction')...

Github action openspout/openspout

anyone have an idea why this is falling with PHP 8.2 and filament 3? https://github.com/lara-zeus/zeus/actions/runs/14956136694/job/42012041485?pr=28...
Solution:
Filament supports 8.2. Filament isn’t the issue. It’s openspout. You need to provide the version in the matrix that does support 8.2

Open Modal with parameters

Hello community 👋 do you know how to pass parameters to modal with livewire dispatch? I need to pass $payment to my paypal modal:...

Inconsistent Logo Size and Unreliable Button Labels in the Registration Wizard

Two issues are encountered while implementing a registration wizard with FilamentPHP: 1. Logo Size Changes Unexpectedly: - The logo is designed to be displayed prominently on specific routes (e.g., login, registration, two-factor authentication). - During the wizard, especially when interacting with dropdown menus, the logo unexpectedly shrinks to its default size....

asignRole in filament-shield

Hi everyone, I'm facing an issue with Spatie Laravel Permission. I'm trying to assign a role to a user after syncing data from another database. The user is created or updated successfully, but the assignRole method doesn't seem to work — no roles are assigned, and nothing is written to the model_has_roles table. What I've Tried:...

Repeater `saveRelationshipsUsing(null)` Not Hydrating Data Correctly

Repeater example: ```php Repeater::make('spot_types') ->relationship('spotTypes') ->saveRelationshipsUsing(null)...

model duplicate in roles and permissions

i have one model ExpenseSetting but i see it as two in roles and permissions
Solution:
i got it i just realized i used my model in two different resourcces
No description

Creating morphOne with a hasOne relation from a morphTo relation manager

A client can have many contracts, a recruitment contract has a morphOne relation with contract, and also a hasOne relation with visa I'm using contracts relation manager for clients, where in a wizard layout, user can choose contract type, than fill the morphTo contract details, and the final step is to fill the details of the selected contract type. Everything works correctly except the Visa information are not stored into the database and consequently visa model does not get attached to recruitment contract. this is my form...

Jetstream & Filament

Hi I want my app to have two different faces - general public (self-register, MFA etc.) - admin (users created only be other admins) ...

Table within Create Form.

May I ask what the best approach would be to add a table with a form? The table should also act as a form field, as I plan to save its data in a pivot table.
No description

What different Action method `using` and `action` ?

I want overwrite logic CRUD Action. What method can i use to overwrite it using CreatePostAction, UpdatePostAction, DeletePostAction? ```php EditAction::make() ->using(function (Model $record, array $data): Model {...