Anik
Explore posts from serversscript in modalContent(view('qr-scanner.php')) not working
Hello I am trying to integrate this package into filament action modal
https://github.com/mebjas/html5-qrcode
the console log in the script works only when called from a web.php route. the script doesnt execute when implemented through modalContent(view()). how can i solve this? any ideas would also be helpful. Thank you.
24 replies
resource in multiple panels
Hi, I am trying to reuse same model resource in different panels and display a slight different array of pages according to user.
In the resource getPages() the filament currentpanel and auth()->user() are not available. what am i doing wrong?
Edit: I have kept the resources seperate and the pages common. Then in the pages, i am passing the correct resource after checking auth. this seems to work. what would be the optimum way? It would be less code if filament() would work inside getPages()
3 replies
navigationitems override
Hello, I want to modify the url() in the navigationItem for a page class. right now they are set to static and cannot be overridden in a ListRecord class. I am trying to get Nested resource from this tutorial.
https://laraveldaily.com/post/filament-v3-nested-resources-trait-pages
The list page works as in the tutorial but when I use it with getRecordSubNavigation, it gives this error.
https://flareapp.io/share/LPdK90Qm
Kindly help. 😢
trying to override NavigationItem gives the error
https://flareapp.io/share/Vme190qm
4 replies
custom actions dont trigger on table
What I am trying to do:
I am querying the data from a relationship and I need to update the pivot columns
What I did:
extended list record page
used table query for modifying query to relationship->getQuery()
My issue/the error:
Custom Actions dont work when using relationship->getQuery()
Code:
Kindly help.
Kindly help.
1 replies
Livewire error after updating to v3.2.15
I am getting this error after updating to the latest version on an EditRecord page. Kindly help
https://flareapp.io/share/x7KZkErP
5 replies
repeater values for previous row
Hi, I have a Repeater for time slots where slots must not overlap and each slot's start must be after the end of the previous one. Kindly help me validate the code.
I want to get the value of the previous index in the json array for validation
2 replies
live() is not working on CreateRecord page but working in Resource page form method
https://github.com/iotronlab/filamentv3/blob/6132663ebef1b76e54d4128cc7afe5537646d4ca/app/Filament/Resources/UserResource/Pages/CreateUser.php#L23
bug reproduction repo
3 replies
opening modal on action button programmatically
https://filamentphp.com/docs/2.x/tables/actions#modals
Hi, is there any method to open to the button modal on page load/mounted
8 replies
Spatie translatable issue with Spatie Tags
Hi, the table switcher is not working correctly on Spatie tags list page, but working on view/edit page.
Reproduction Repo
https://github.com/krishzzi/filament_testing
temp solution
https://discord.com/channels/883083792112300104/914836965076135936/1079470356760383529
2 replies
multiple models with relationships with Wizard Steps
Hi, I am using a Wizard Step with a model on a custom page to create and edit the model. I am having issues with SpatieMediaUpload which doesn't save the relation the first time on create but works well on edit. Sample code below
The form isn't saved when saveKyc is run the first time (on wizard next) but the function saves the relationships if it's run a second time (going previous and next on the wizard). I am looking for a way to save a multi model form with attachments via SpatieMedia.
2 replies