How to sum in filament
I need help i have a any taxes in my project i need calculate totality of the taxes in one field total impuestos
4 Replies
can you try with something like this?
just replace * for + of course
thanks for your help, but the placeholder can't storage to database
Why do you need to storage to database?
if you do calculations front-end someone can manipulate the value that is passing to database.
For showing you can use placeholder, but to safe in database use a lifecycle hook : https://filamentphp.com/docs/3.x/panels/resources/editing-records#lifecycle-hooks