Filament

F

Filament

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

Join

Button Edit Action disappear after first click

Button Edit from my ViewResource header always disapear after first click (see video attached). On the client side I have this error on the console from Morph.js
TypeError: e.setAttribute is not a function
TypeError: e.setAttribute is not a function
. I can't figure out what's happened. It happens on other part of my UI. Also its only in production where I use FrankenPHP. The livewire/update request retuns a 200 with the button present in the Livewire response. Morph dom seem to fail to morph the dom accordingly ? Any ideas of this...

Making 2 version of uploaded image

What looked like a simple task become 2 day headache. I have a form, and one field for upload the image. When I hit submit I want to make two image from it. One would be resized (and this posed no problems) and second one which would be a thumb of the either uploaded image or resized. Tried to make it work doing some experiments, then I tried to google the solution, then Claude... One solution suggested using Intervention/Image, other Spatie media library, and all were so cumbersome, that I find it ridiculous. Any suggestions on how to resolve this, since documentation is so limited with examples of commands/arguments?...

Repeater - Safe Approach to Prepend Data

I can't seem to find a path with the Repeater component to safely add a new item to the start of the list. I have the two following approaches: ```php // Use internal Filament events to add the new item and move it to the start of the list...

Table Widget with InteractsWithPageTable

Good evening, I wanted to know if there is a way to make a table widget reactive to the resource table, similar to how it’s done for classic widgets using the protected function getTablePage(): string by importing the InteractsWithPageTable trait. I need to have an additional table (managed as a widget) on the resource that is reactive to the primary table. Thanks in advance to anyone who can provide help....

Call Resource Save Changes Button

Hello, How could I call the Save Changes button action from another action button ? Thanks 🙂...

Do I need to install a Laravel starter kit to use FilamentPHP?

Hi it's a while since I tinkered with this, for the life of me I can't remember if FilamentPHP has it's own login

ImportAction bypass FileUpload and pass filename directly

I upload files and convert them to CSV. They are stored on the server and a record is created in the database. I want to display an 'Import' link on each table row that passes the local filepath directly to the Import Action, rather than using FileUpload. I would like to see the modal that maps CSV columns to DB columns instead of seeing FileUpload. Is this possible?

APP_URL on multitenancy

im using domain aware tenancy and will handle multiple tenants so i will have like main.domain.com , sub1.domain.com , sub2.domain.com etc what should i add in the env app_url?...

Widget Owner

If I've got a table widget in a view page (ViewRecord)...how am I getting the model of the record I am viewing ? tried getOwnerRecord()...

How to turn-off client-side validation

Sorry if there is out there in documentation. I have tried to search but haven't found it. Is it possible to turn off the client-side field validation and just relay on server side? The client-side behavior seems to skip ToggleButtons, doesn't highlight the field red, etc. Would prefer just to use server-side as it's fast, it highlights all fields that break validation rules, etc. Any help appreciated!

Can you collapse widgets ?

Are widgets collapsible ?
Solution:
Section supports collapse

Websocket - refresh table

I've been trying to find a way to refresh a table, or a specific row in a table using websockets. Say there's an event in a different module that would affect the data in the table, i'd like to re-fetch the data or only the row that was affected. Has anyone encounter something like this?

Custom Column Clickable - Prevent

Hi is there a way to prevent oppening edit action when i click on FeatureColumn, but still keep functionality to open edit action when i click on rest?
No description

bulk actions with large dataset

when doing bulk action on 100k records, the app is freezed the action is attach many to many relation to selected records any idea how to solve it ? Thx in advance...

Change language Only in Admin panel

Hello, How to change the language only while we are in the /admin? I need my main app to be in EN, so in my .env APP_LOCALE=en, but is there something to add to change the lang only for admin?...

Refresh Form Data in Modal

Hello - I have a form in a modal. I fill the form data initially using ->fillForm(). I have an action within in the form where the user can create a new model. Is there a way to call ->fillForm() again after the user submits the action form? I want to fill the form with fresh data.

CheckboxList ->in() validation not working

Hey, Using what's on the docs I have the following code with different values: ```php CheckboxList::make('technologies')...

Expandable Rows

Hi i want to ask, is there any chance in filament, we can do expandable rows. it's not like collapsable . means like, in table filament, have button to expand row, when user click expand, the details in expand row also another table. i dont find any solution here.

How to test the form of a relation manager?

I want to verifiy if one select field of my relation manager has the correct options, however I don't know how I can make this assertion. I've tried: ``` livewire(RelationManager::class, ['ownerRecord' => $record, 'pageClass' => '']) ->assertFormFieldExists(...

Filter form loading time

Dear all, in resource table i have filter as a custom form, when opening form filter it's have a few seconds to load options, when using standard Select filter the response to load options is minimal ..., anybody know woh to fix or increase performance of form filter ? (I need to use form filter with reason of dependacy injection of next filter form fields) See code bellow: ```public static function getTableFilters():array { return [ //this working fine Tables\Filters\SelectFilter::make('customer_id')...