jals65
Adding id's to filament components
Hi, i'm implementing the visual tests with cypress in my app. And I'm having a problem with the selectors of the elements when it's an element created by a filament component like tables or buttons. It's possible to add selectors to the filament components (tables buttons, actions, etc.) like data-attributes or id's?
6 replies
Record variable type change to string if i add the mount function on my viewrecord page
Hi, i'm trying to add an additional viewRecord page on my resource to show some info in an specific type of records. If the record doen't have this specific type, i need to block accessing the page throwing a 404 error.
So i'm trying to make a validation on the mount hook of this page. The problem is with the record. If I don't add the mount function, the $this->record is a Model of my record, but when I add the mount function, it it's a string, the name of the record.
6 replies
TextInput default value on edit page
Hi, I want to set a default value on a form text input. I'm adding the
->default('some default string')
property but it only works on Create, in the edit it doesn't works even though the value is empty or null.
For example, I need this for when I add a new field to the form and for example a user accesses the form when they had previously saved it. So that this field appears already filled in with the default value.7 replies
Issue updating filament from 3.0.92 to 3.2.4
When update filament, it trows this error:
Cannot use positional argument after named argument during unpacking
vendor/livewire/livewire/src/Features/SupportLifecycleHooks/SupportLifecycleHooks.php(21)
I debug and i can see that it have an array with:
I think this is because I have an optional param in the url.
5 replies
Livewire actions on form component layout
Hi, I'm creating a custom filament form component layout. I need to exec a function in the controller of the component but wire:click is not working for that.
I create a public function called addPreset in my controller, and in the element I add a wire:click="addPreset".
When I click it trows an error saying method not found.
11 replies
Testing using acting as with superadmin.
Hi, i'm using PEST to test some parts of my panel, and I want to make a test to assert that some html is visible.
The problem is when i'm trying to use a new user, with
super_admin
role, but when the page render, it trows 403 forbidden.
Here the test:
8 replies