Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
Hiighsky
Posts
Comments
F
Filament
•
Created by DianaMujoiu on 7/20/2023 in
#❓┊help
502 NGINX
Without more information hard to help. Check your php logs
3 replies
F
Filament
•
Created by Chrysippus on 6/28/2023 in
#❓┊help
Maximum execution time of 60 seconds exceeded
You probably have to
35 replies
F
Filament
•
Created by Chrysippus on 6/28/2023 in
#❓┊help
Maximum execution time of 60 seconds exceeded
He don't want a placeholder field, he want it as a TextInput
35 replies
F
Filament
•
Created by Chrysippus on 6/28/2023 in
#❓┊help
Maximum execution time of 60 seconds exceeded
$set(
'../../total'
,
....
$set(
'../../total'
,
....
That should work from inside the repeater
35 replies
F
Filament
•
Created by Chrysippus on 6/28/2023 in
#❓┊help
Maximum execution time of 60 seconds exceeded
Yes because you only have afterStateUpdated on the shipping_fee field, you need it for product_quantity and price too
35 replies
F
Filament
•
Created by Chrysippus on 6/28/2023 in
#❓┊help
Maximum execution time of 60 seconds exceeded
Can you show me the repeater code?
35 replies
F
Filament
•
Created by Chrysippus on 6/28/2023 in
#❓┊help
Maximum execution time of 60 seconds exceeded
Why multiple times? If I got you correct you just need it for your total field
35 replies
F
Filament
•
Created by Chrysippus on 6/28/2023 in
#❓┊help
Maximum execution time of 60 seconds exceeded
So basically you make orderItems and shippingFee reactive and on the total field you listen for changes and calculate everything
35 replies
F
Filament
•
Created by Chrysippus on 6/28/2023 in
#❓┊help
Maximum execution time of 60 seconds exceeded
https://filamentphp.com/docs/2.x/forms/advanced#reloading-the-form-when-a-field-is-updated
35 replies
F
Filament
•
Created by Chrysippus on 6/28/2023 in
#❓┊help
Maximum execution time of 60 seconds exceeded
My suggestion would be to make this whole thing reactive and calculate the total on the fly
35 replies
F
Filament
•
Created by Chrysippus on 6/28/2023 in
#❓┊help
Maximum execution time of 60 seconds exceeded
You can just use saveQuietly() instead save() to prevent this endless loop in your observer.
35 replies