dyo
Problem in accessing widget current record
https://filamentphp.com/docs/3.x/panels/resources/widgets#accessing-the-current-record-in-the-widget
Can someone help me explain more about accessing widget current record?
My widget class:
I get error
Unable to resolve dependency [Parameter #0 [ <required> $record ]] in class Widget
What should I do?
8 replies
About stripCharacters in TextInput Custom Filter
How to use stripCharacters in TextInput at custom table filters, and ignoring the added character in search criteria?
For example I have a filter to set minimum value of data, if the user typed 50,000, it become '50,000' in filter, where it should be 50000.
3 replies
Suggestion for dependant fields
Can someone suggest me what is the best approach for dependant fields..
In my case, I want my input total_price to be dependant to:
1. room_id, which is later will have to get a price attribute from room model, required
2. discount, numeric input, not required
3. additional_services (with repeater), has name and price attribute, can be 0 items or not required.
So later, the input price will be a calculated data of those above 3 inputs.
Currently the form is in resource class..
I'm using filament v2.
17 replies
Route [filament.pages.dashboard] not defined after filament upgrade
I just upgrading my filament version to v3.
After running php artisan filament:install, i got error
*Route [filament.pages.dashboard] not defined. *
in /admin.
I'm using custom Dashboard, and i've followed the steps from here
https://filamentphp.com/docs/3.x/panels/dashboard#customizing-the-dashboard-page
I've also tried running php artisan optimize.
what am I missing?
20 replies
Problem with updated data in form repeater
how to directly trigger a property in form repeater to be updated, when the repeater was cloned or deleted in filament v2?
I want to live calculate other property based on data in the repeater.
for example, a property in repeater is called 'list_data'
and calculated property is called 'sum'.
4 replies
Need help with how to create a loading modal
I have a page action to do some process for a bunch of data.
Can someone give me suggestion how to show a loading bar while it processing in a modal with filament?
So I can tell the user how many data will be processed and what is the progress.
3 replies
problem with customized searchable text column
https://filamentphp.com/docs/2.x/tables/columns/getting-started#searching
Does anyone know the correct way to custom the results from searchable in textcolumn?
So in this case, there is a cellphone column whose example data format is 6285265213796
but admin users often search for cellphone number data in the format of the results from copying and pasting numbers on WA, for example +62 852 6521 3796
I've tried
The classes and methods above are also used in other cases, and convert the cellphone number format correctly, according to the data in the database.
but when used in textcolumn, the script above doesn't work as expected.
What should I do?
6 replies
Refresh view column when a method in resource list is used
I'm working with viewColumn, there I have buttons, which is called a method from my list resource component.
Can someone help me if I want the column to be refreshed if a method is called?
the column
i've tried this in list resource component, but it's not working.
3 replies