Chriis
Request for a tenant menu item URL is throwing an error
Hi, I have tenant menu item that get the URL from a Setting table in my DB. It works fine, however since I implemented this menu item I have an error everytime I deploy my app. When I do composer install its throwing an error because the request could not get a result from the DB. So I migrate my DB, but I also have this error telling me to migrate ...
I don't know what I can do except deleting this request.
5 replies
Filament app work on "http" but not on "https" on a VPS with SSL
Hi, my Filament app work on "http" but not on "https" on a VPS. I have configured a SSL certificate with Lets Encrypt. The classic key generate Laravel error worked on Https but as soon as I generated the key, the app was no longer working on https. Any idea ?
56 replies
How can I know if its the edit or creation form in a Closure ?
Hi, I want to modify the columnSpan() of a form input based on the current action, because I have a hidden field in the edit form of a ressource which let a empty space in the form. How can I get this information into a Closure ?
Help would be really appreciate 🙂
4 replies
How to transform a classic resource into a simple one ?
Hi, I have a some classic resources that I created at the start of my app, but I now realized they would be better has --simple resources. How can I transform them into exactly what the --simple flag create without having to recreat them ?
5 replies
Conditionnally hidden field still have value after state updated to null
Hi, I already had this problem for another form and never really understood how I could make it to work properly.
So I have a Toggle which conditionally hide a Select. This select use a relationship for the options. After the toggle state is updated, I hide the Select and set it to null.
With this configuration, I can create the ressource without problem, the Select is null when I want to, etc ...
But, when I update a record of this resource, if I change the Toggle to the state where the Select disappear and save, the value linked to this select in the database remain the one I had before editing the record.
Its like when I change the Toggle state and the Select disappear, the Select value is no longer part of the field UPDATED.
So is it a okay if I use a lifecycle hook in the Edit{Resource} class for testing if the Toggle is off and require to set the Select to null ? Or there is a better way to do that directly in the form definition
7 replies
How can I validate a group of input into a wizard Step ?
Hi, I use a Wizard for the creation process of one of my resources and want to validate a group of inputs which are formatted as a code in the mutateFormDataBeforeCreate().
Is there any way to do that ? At first I thought I could just update a hidden "code" input in the form but if I validate this hidden input, the error message would be invisible I guess. I also don't want this input to appear in the form because its not relevant for the user.
Help would be really appreciated 🙂
10 replies
forceDeleteAction triggering deleted model event and not forceDeleted
Hi, like the title say, the Filament forceDeleteAction trigger the "wrong" model event and I have no idea why ... I looked into into the action and its using the forceDelete method so I don't know how/why its doing that in the Observer.
Any idea, or someone to try on his side ?
5 replies
More informations about global settings
Hi, is it possible to have more informations about global settings in Filament ? I'm not really comfortable with ServiceProvider so I don't really see how I can have multiple global settings in the booted method (an array ?). Also, I supposed the ServiceProvider boot method to use was the one of my Filament panel.
I would be really grateful if someone could give me some explanation 🙂
2 replies
How to disable clickable rows in a certain table tab
Hello, I have a 'Archived' tab for the table of one of my resources, and I would like to disable clicking on the row when I am in this tab. This produces a 404 error because the view/edit page is not found for the resource since it is soft-deleted. Is this possible ?
13 replies
Tables\Actions\ForceDeleteAction and Tables\Actions\ForceDeleteBulkAction are no longer working
What I am trying to do:
Having Tables\Actions\ForceDeleteAction and Tables\Actions\ForceDeleteBulkAction in my archived tab
What I did:
I applied this condition to both of them
My issue/the error:
It was working perfectly for weeks but today I noticed they disappeared and I have made absolutely no changes on this part of the app
3 replies
Copy to clipboard table row action
Hi, like said in the title, how can I copy record data to the clipboard with a table row action ? I know its possible with a Textcolumn but I don't want to show the entire url in the table ... Or maybe I could replace the URL text in the TextColumn but could still be able to copy the URL and not the placeholder text ?
13 replies