Chriis
Chriis
FFilament
Created by Chriis on 12/22/2023 in #❓┊help
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
FFilament
Created by Chriis on 12/22/2023 in #❓┊help
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
FFilament
Created by Chriis on 12/21/2023 in #❓┊help
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
FFilament
Created by Chriis on 12/20/2023 in #❓┊help
Error message after caused by a tenant menu URL item
No description
3 replies
FFilament
Created by Chriis on 12/18/2023 in #❓┊help
How to have a default() for a Select multiple() ?
Hi, I have Select->multiple() and I can't initialize a default value. So what is necessary for inserting a default value ? The id ?
32 replies
FFilament
Created by Chriis on 12/17/2023 in #❓┊help
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
FFilament
Created by Chriis on 12/13/2023 in #❓┊help
Placeholder for empty Select relationship
Hi, I can't find a way to have a placeholder text in case there is no result for my relationship Select. Any idea ?
2 replies
FFilament
Created by Chriis on 12/7/2023 in #❓┊help
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
FFilament
Created by Chriis on 12/5/2023 in #❓┊help
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
FFilament
Created by Chriis on 11/30/2023 in #❓┊help
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
FFilament
Created by Chriis on 11/28/2023 in #❓┊help
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
FFilament
Created by Chriis on 11/27/2023 in #❓┊help
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
FFilament
Created by Chriis on 11/24/2023 in #❓┊help
What's the differrence between getActions() and getHeaderActions() ?
Everything is in the title 🙂
11 replies
FFilament
Created by Chriis on 11/23/2023 in #❓┊help
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
->visible(fn ($livewire) => $livewire->activeTab === 'archived')
->visible(fn ($livewire) => $livewire->activeTab === 'archived')
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
FFilament
Created by Chriis on 11/23/2023 in #❓┊help
How to manage n-n relationship in this case ?
No description
50 replies
FFilament
Created by Chriis on 11/13/2023 in #❓┊help
copyable() not working
Hi, I don't know why, but every copyable in my app are not working, like nothing happen when I click and nothing is copied to my clipboard. I updated my composer before asking, just in case ... Am I the only one ?
3 replies
FFilament
Created by Chriis on 11/13/2023 in #❓┊help
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
FFilament
Created by Chriis on 11/10/2023 in #❓┊help
Accessing $livewire in emptyStateDescription() method
Hi, is it possible to acces $livewire into the emptyStateDescription() method of a table ?
->emptyStateDescription(function (Livewire $livewire): string {
$activeTab = $livewire->activeTab;

$description = match ($activeTab) {
'validated' => 'Aucune fiche(s) trouvé',
'pending' => 'Aucune fiche(s) en attente',
'archived' => 'Aucune fiche(s) archivé(s)',
};

return $description;
});
->emptyStateDescription(function (Livewire $livewire): string {
$activeTab = $livewire->activeTab;

$description = match ($activeTab) {
'validated' => 'Aucune fiche(s) trouvé',
'pending' => 'Aucune fiche(s) en attente',
'archived' => 'Aucune fiche(s) archivé(s)',
};

return $description;
});
11 replies
FFilament
Created by Chriis on 11/10/2023 in #❓┊help
Repeater HasMany relationship error
No description
3 replies
FFilament
Created by Chriis on 11/9/2023 in #❓┊help
Refreshing table tabs count after update
Hi, I have a table with 3 Tabs, and each tab is a filter of my records by status. How can I update the tab counters after updating a record status ? The restore and delete action are doing it by default but I don't find how its done 😦
2 replies