giuseppemastrodonato
giuseppemastrodonato
FFilament
Created by giuseppemastrodonato on 11/13/2024 in #❓┊help
Access Livewire component data inside Resource form
Hello guys! How can I access data from a livewire component inside a Resource Form? I need to access to the data and associate to the record while creating/editing. Do I have to rely on Events? Thanks !
2 replies
FFilament
Created by giuseppemastrodonato on 1/8/2024 in #❓┊help
SPA Mode & custom JS
Hello guys, When I activate the SPA mode the custom JS stops working. In this specific case I am loading preline to handle tabs in a custom edit-model page. The script is loaded via: ->renderHook('panels::scripts.after', fn() => app(Vite::class)('resources/js/admin.js')) in AdminPanelProvider. If i refresh the page after the first spa-access everything is working fine. It would be a pity to drop the spa support in my project just for this reason. Any hints?
10 replies
FFilament
Created by giuseppemastrodonato on 10/27/2023 in #❓┊help
Accessing the selectedTableRecords when updated
Hello, I need to access the selected records (every time selectedTableRecords is updated) within a table component with a bulk action registered. Is there any way to do it? I have tried with updatedSelectedTableRecords method but it's not firing anything.
2 replies
FFilament
Created by giuseppemastrodonato on 9/20/2023 in #❓┊help
CORS setup with custom FILAMENT_DOMAIN
Hello guys, How can I setup the Laravel CORS settings when using a subdomain to access filament? When I try to see the uploaded images I get this error: Access to fetch at 'http://FILAMENT_DOMAIN.test/medias/160/8066_zaino-vespa-v-stripes-a-tracolla-colore-nero-giallo_1695202495_.png' from origin 'http://admin.FILAMENT_DOMAIN.test' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. I have tried to edit the cors.php in all possible ways without success. Any hints? Thanks!
9 replies
FFilament
Created by giuseppemastrodonato on 6/22/2023 in #❓┊help
Tables\Columns\Select trigger error on null/placeholder selection
4 replies
FFilament
Created by giuseppemastrodonato on 5/29/2023 in #❓┊help
Sorting polymorphic relationships in Tables
Hello guys, I was wondering if there's a method to sort the tables based on columns in a polymorphic relationship. Thanks in advance!
4 replies