Filament

F

Filament

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

Join

Finding the files or code to edit the Error message

Hi Guys where i can usually find the error Message to be edit
No description

How to dynamically set defaults for Repeater fields?

Hi, I want to dynamically set the defaults of some Repeater fields, based on a "global" value from a different Form field outside of the Repeater. For example: - "global" Select Field for a color -> red selected - Repeater has a Select Field color too, that should have the default red (but can be changed independently, so not the same field ID)...

refreshFormData in afterSave() function

Hello, simply question: i try to update a form field after saving data, reading a value from database. in edit page add this function...
Solution:
Ok.. just use $this->form->fill($this->record->refresh()->toArray())

Is Filament v3 compatible with Laravel 12?

Just recently installed laravel app version 12, using the livewire starter kit. And I noticed flux has been used. Upon installing filament table builder, i notice this
Filament uses Tailwind CSS v3 for styling. If your project uses Tailwind CSS v4, you will unfortunately need to downgrade it to v3 to use Filament. Filament v3 can't support Tailwind CSS v4 since it introduces breaking changes. Filament v4 will support Tailwind CSS v4....

Wizard Trigger Next Steps From Notification.

So I checked the data after validation was carried out, and if the data is not similar then I will give the user a warning in the notification like the code below. This notification has actions to cancel and continue, but I'm confused about how to trigger the wizard next step from this notification. Can I get help here? ...

is this normal?

I just installed filament, I followed the documentation and I have the dashboard, I also added a crud of users, I have these loading times from 0.94 to 1.70 in the worst case on the local machine it is similar, i run the local machine in windows, I have nothing, it is as it is when following the steps in the documentation...
No description

No routes are made?

Hey i put filament in the composer updated it, in my compser about i see filament. But when i go the project.test/admin it doesnt bring me anywhere and the routes doesnt work
Solution:
you have to configure the panel

Customize option labels in a relation manager attach action

I need to customize the option labels in a relation manager attach action. I have tried the following ```php Tables\Actions\AttachAction::make() ->recordSelect(function (Forms\Components\Select $select) {...

Filament 3 Tabs Serving Livewire Component with $form

I have an OrdersResource using Filament 3 Tabs to serve a Livewire component OrderProofs which allows for uploading an image and storing in the Proofs table that separate from the parent Orders table. The logic works well except that when uploading a file the parent 'Save Changes' button is triggered into 'Uploading file...' status, and never returns from that state. Is there a way I can better isolate the Livewire form so it never triggers the parent Save Changes button? Have tried using differ...
No description

Unique attributes per category - ideas on implementation?

I am wondering if anyone has suggestions on how to implement the following. (such as, if I should be able to do this with default components and learning how to customize, or it will require a custom component or using hooks or whatever; I don't think I saw any plugins related to this) Basically, each record (let's say it's a "product") belongs to a category. However, each category has associated product metadata/attributes, which may vary in their type (text, selection, multi-select, boolean) and rules (required or not, validation). For example, something in the "car" category might have: fuel (electric or gas) odometer...

Multiple panels and resource access (routes)

I have two panels, one for admin and another one for member, they both use the same User model. I've setup the canAccessPanel to allow depending on privilege like this (which works nicely): ```public function canAccessPanel(Panel $panel): bool { if ($panel->getId() === 'admin') {...

The POST method is not supported for route login

I just git cloned a project im going to work on, but i get route login is not supported? Im on laravel 11. Is this a known issue or is it something on my end?

Using filament with API for mobile app

Hi everyone. I am looking to build an app using Filament Admin Panels. Filament fits perfectly for this use case scenario for the exception of one thing. We are looking to have a web app as well as mobile app. We are thinking to use NativePHP to compile this app in iOS app. ...

Nested Schema Problem in Get

I have form with select field for res_id, and Repeater for prices, in repeater the size_id is based on selected res_id, the Get alway return null res_id even it's selected How can i pass the res_id to the schema in section.repeater.size?...
No description

Toggleable colomn fails after making it visible again

I have some code that hides and unhides colomns because I have a inline edit mode. Yet when I have switched from Display mode to Edit mode, it shows the toggelable colomns from the dipslay mode instead of the edit mode. When I switch back to Display mode I see the toggleable colomns from Edit mode, so it is always a state behind, whenever I refresh or when I simpely search something in the searchbar or whatever update event I do, it fixes the toggelables: ```php...
Solution:
Right got you, the toggleables is going to be behind in that scenario because it's handled on boot. Toggleable normally would never change the columns are related to the data. I would usually recommend a separate list page for editing which could render differnet able parameters. Maybe on the dit mode, instead of toggling to refresh the data do a page redirect with a query string to enable edit mode which will cause 1 redirect, but ensure everything lines up correctly?
No description

Image Preview after $set in FileUpload field

I have code like this:
$set('relation', ['image_path' => [$relativeFilePath]]);
$set('relation', ['image_path' => [$relativeFilePath]]);
After saving, I get to see the preview and data is saved correctly. However before saving, I don't get a preview....

Array of actions on a custom page - Not possible ?

Hi guys, I'm trying to make a custom export page that display some Filament actions dynamically but it's not working. Is there a way do to that or it's not possible and I must declare one method per action, as explained in the docs (https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component#adding-the-action). ```php <?php...
No description

How to use Column summary when for that column is done using "getStateUsing"

Hello, I have a case where i build my table columns values dynamically, and need to use getStateUsing for that, is there a way to use summary for that column? because seems now summary tried to get done by querying that db column...

Custom form handling

Is there something like https://filamentphp.com/docs/3.x/actions/prebuilt-actions/create#customizing-the-creation-process but for forms? I want to do some http requests and manually create models when form is submitted. Or do I need to use regular laravel observers? 😶‍🌫️
Solution:
It was CreateRecord::handleRecordCreation my dumb ass didn't know where to look 😶‍🌫️