Filament

F

Filament

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

Join

Best security practice for filament?

Im new to this laravel landscape and just started building admin panel for my organization using filament, im confused how to secure my app, could you suggest a library or plugins to use or anything form laravel ecosystem to securing my app. thank you

Control the order of processing import records?

Is there way to control the order a csv is processed? Lets say i have a particular date column and i want to make sure rows are processed oldest to newest.

live method is rendering mine table

Hi! I have a custom filament page where i have on the same page form and table and when i press button which is form action everythin works fine. mine problem happend after first submit button than i have case when i change state of component that has live mine table re renders how i can stop re rendering table on change state of component

Admin panel does not render properly after installing filament notifications on frontend

My admin panel was working but after I followed the instructions to install filament notifications to the frontend, it is now rendering like you see on the provided image. Really don't know what to do next. I've cleared the caches on everything, recompiled the assets, noting seems to work, I think is a conflict somewhere....
No description

Form Builder Component

Is it possible in Filament to store a Builder block as a related record just as with a Repeater Item?

Live method is calling mine action

Hi everyone i have a case where when i change the value of the component that is live mine action is called like i press the button, how i can stop that. Mine form...
Solution:
Solve it but with work around ``` @if (static::$isRender) <div wire:ignore> @if ($this->displayTable) <h1>{{ $this->outputText }}</h1> {{ $this->table }}...

Lazy Loading Infolist Entry?

What I am trying to do: To lazy-load contents for an Infolist Entry (TextEntry in particular). The contents come from a slow external API so I would like the page to load first and only then trigger/load the lazy component. Ideally this would be without creating a whole custom component, but of course happy to if that's the only option. What I did: Looked through Filament documentation & codebase. My issue/the error: Cannot find any reference to lazy-loading an Infolist Entry....

Spatie Media Library deleting S3 files

Whenever I upload to one it seems like it deletes the others from the s3, maybe just resetting the bucket folder, I'm not quite sure ```php Tabs\Tab::make("Media") ->icon("heroicon-o-photo")...
No description

Set Repeater Data from Action Form

Hello - I am trying to generate a repeater from a form action. ``` Actions::make([ Action::make('extras') ->label('')...
Solution:
its fillForm

I want to separate my forms from my database structure.

I'm using the form components for my app and want to focus the structure of the forms mostly on "ux". I don't want my database to dictate how my forms should look, and i don't want my forms dictating my database structure. I would love to separate these data structures and user spatie/laravel-data to map the form data to DTO's and then to DB models....

"Menu Item Not Showing in Filament FranchisePanelProvider"

Hello, I'm facing an issue with my Filament project where menu items do not appear on the FranchisePanelProvider screen. The menu items work perfectly fine on the AdminPanelProvider panel, but for some reason, they are not visible when added to FranchisePanelProvider. ```...
No description

Test Form Component Action

I have a Custom Page which includes a header Action. The Action is a slide over, which shows a form to create a model. I want to test if the action executes as expected an create the record, as well as if the fields that are conditionally disabled are really disabled when they should be. My test looks like this : ``` it('can create tariff', function() { $tariff = Tariff::factory()->make(); livewire(ListLocationTariffs::class, ['record' => $this->location->uuid])...

if I use createOptionUsing (along with createOptionForm), do I have to validate the inputs manually?

in my createOptionForm I cannot seem to use Filament validation rules for the inputs. Is it because I'm using createOptionUsing? do I have to call the Illuminate\Support\Facades\Validator and validate manually?...

How to make the android app?

How to make the android app using the react native?

Persistent search selections on table

Hi All, is there a way to persist the search on a searchable column ? For example : i search for something and select the record...

lazy() and reactive(), when changing fields to fast with tab its does not save some values

I have a set of fields that all of them are with lazy(), then i have a placeholder that sums all of the fields to show a result. The problem is when someone inputs the data fast like input a number click TAB to go the next field, inserter another number on the next field, after like 2 fields its starts to appear the value on the input box but then its deleted because of the lazy from the previous field. Is there anyway to avoid this?...

Change click action on the whole row in list view

As normal, when clicking on a row in the list view, it redirects you to the edit page for the record. How do I change this action to a custom one? I want to do the action below, when clicking on a record row instead of redirecting to edit page. Tables\Actions\Action::make('show_location') ->action(function ($record){...

A hint, not a question

Hi, just thought I'd share this hear as it took me a while to find the answer. If you need to populate a filament field from outside the alpine/livewire code (ie, in vanilla JS), do the following: ``` const targetField = document.getElementById('data.<field ID>'); targetField.value = event.data.html;...
Solution:
Solution above

Register Filepond Plugin

There is a similar post here : https://discord.com/channels/883083792112300104/1151432989276913674 Is there a way to register a plugin for FileUpload without overriding the whole thing? I've tried all the solutions mentioned in the above thread - except for the suggestion to override the entire file-upload.js file....

How to Get $get an input that is in the main form from the ->createOptionForm modal

Context: I have a form to create a payment where you select a subscription year. Then you have to select an existent subscription (based on the subscription year). If there is no subscription, you can create one in the modal (I've used the ->createOptionForm method to achieve this). For a subscription to be created, you have to select a subscription year. Because you've already selected it in the process of creating the payment, I would like to Get $get it automatically. How do I achieve this? How do I access the subscription_year selected in the main form?...
Solution:
I think this is also possible with $livewire->data[]