yandos666
use getOptionsFormComponents to adjust export query
Hi - i'm using getOptionsFormComponents to add a new dropdown to my exporter class, how can i pass the value of the dropdown to the modifyQuery() method to filter by results? In the docs it only seems to mention adding options() to closure functions but getOptionsFormComponents() is static
6 replies
Equivalent of novas computed fields?
Just wondering if there is a filament equivalent of computed fields for the table builder: https://nova.laravel.com/docs/4.0/resources/fields.html#computed-fields
I can see that you can use ViewFields but this seems overkill when i just want to return some textual information where a closure would suffice
6 replies
Nova style relationship links on table builder
So i'm migrating an admin panel from nova to filament v3 and struggling to find the equivalent of novas relationship methods to provide a quick shortcut to a related resource - an example would be displaying the users name in a posts table and clicking on the name takes you to that user resource page.
I can use column relationships to get the users name, or actions to provide a clickable link but is there out of the box functionality to combine these without having to revert to custom views etc?
5 replies
Hiding relationManagers on view page (v2)
So i've created a view page and hooked it upto a resource, what i'm wanting to do is not show the related resource managers on this page, but i cant seem to find a way to override getRelations() thats set on the main resource. i've tried including the same method on the view page class but no luck - is there a specific way to do this?
7 replies
How to check for current page from a resource
I'm trying to conditionally render some relation managers depending on if the user is currently viewing the resource from either the view page or edit page, from inside the getRelations() method of the Resource, is there a way of calculating what page is being used?
5 replies