Will π¬πΉ
FFilament
β’Created by Will π¬πΉ on 11/16/2024 in #ββhelp
Best practice for multiple dynamic properties
Looking for advice for the following scenario:
My form also has several places where I will be using the
Product
data. Do I really need to execute the Product::find($productId)
on every dynamic
property?
Example:
After the TextInput::make('quantity')
is ->live(onBlur: true)
I have another field that will show the Total
which is quantity * $product->price
. Calling Product::find...
for the 3rd time seems a bit much.
is there a more efficient approach that I might be not considering, cause calling the Product
model every time doesn't seem efficient.
Thanks in advance for the advice4 replies
FFilament
β’Created by Will π¬πΉ on 6/27/2024 in #ββhelp
Call async JavaScript function from a Action
I have a
TextInput
that has a hintAction
to copy a code to an NFC tag using Chrome's NDEFReader
JS function
The JS function works, calling the JS functions from Action works. However, the modal doesn't wait for the JS function, it closes as soon as I confirm on the modal. Is there a way to "wait" for the JS function to finish before closing the modal?
Any guidance will be greatly appreciate it3 replies
FFilament
β’Created by Will π¬πΉ on 4/8/2024 in #ββhelp
How to get team_id when creating new record from Relation Manager
I have a Relation Manager
ConversionsRelationManager
I'm trying to create new record from there but I keep getting team_id
doesn't have a default value. I have the normal resource UnitConversionResource
and I'm able to create new records there with the team_id
being passed correctly5 replies