giuseppemastrodonato
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
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
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
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