TranceCode
Explore posts from serversHow to delete image or images when deleting a record?
When I delete a record that has images and I save the images in a folder and the paths in the table, deleting a record deletes everything from the database, but the images still exist in the folder, how should these images be deleted? Is there anything that Filament has preconfigured already?
Thank you so much!
13 replies
It's possible make drag-and-drop with filament?
Hello friends, a question, is it possible to do drag-and-drop with Filament, to move to different positions, for example, images, texts, buttons, etc., this in a dashboard with Filament of course!
As a separate topic, is it possible to do it with Livewire for the front of a site?
I'm looking for some information on whether it is possible for both cases or would it be best to use JS in the front and dashboard for such a case?
Thank you so much!
1 replies
how can disable the createAction If?
I need to block the Create User button if the logged in user does not have an associated business, I want the button to be visible but when clicked it does not redirect and shows a Filament Notification, I tried this code but it does not work for me, it does not go through the validation, I tried with dd() but it still doesn't happen, is there something I'm forgetting or missing? This is my code!
3 replies
How can show a modal message ?
Friends, how can I show a message in Modal here instead of a Notification?
My idea is to focus all the user's attention on the message that appears in the modal, i try with actions modal but is not working here!
The message and Modal must be displayed in the context of creating a record
5 replies
Can't export data using ExportAction with Tenant
I'm trying to export data using Filament Export in my Tenant project, but when I try to export data it ends up giving me this error:
The issue is that this relationship is not what I use, the only relationship that exists between these 2 models is that commonarea belongs to companies, but here it tells me that it needs a relationship, I have reviewed a little more and it seems to me that the export migrations when bringing is causing me problems, I made the change to put it as since customer is the user who is logged in and from his panel he can download the excel, but even so the problem is not solved... is there any idea that me give to solve this problem?
20 replies
how can disable days of week?
Hey friends, i need disable a days of week that i don-t have in the array in my table, i try whit this code but is not working, do you have any idea about how can fix this?
i have this in my table row availabledays
["Lunes"]
["Sabado","Lunes","Jueves","Miercoles"]
["Miercoles","Lunes","Viernes","Sabado","Martes","Jueves","Domingo"]
This is my code:
6 replies