Brian Kidd
Query scoping
One way would be alter the query and define the fields from the pipe model that you want included. There may be a simpler way in filament but this is a way to do it with Eloquent: https://laravel.com/docs/11.x/eloquent-relationships#eager-loading-specific-columns
6 replies
Sorting a custom attribute
There may be a way to do this using Filament functionality but I would probably just add a scope to the model that counts the relationship and cast it to a boolean. Filament is performing the sort on the query builder.
3 replies
Searching in a table on a column using a polymorphic relationship
Check this section of the Laravel docs and see if this helps: https://laravel.com/docs/10.x/eloquent-relationships#querying-morph-to-relationships
6 replies
how to set max repeat for a repeater
Is there a reason you’re using a repeater rather than the file upload form field? The form field can handles these requirements but there may be a specific reason you’re using the repeater. https://filamentphp.com/docs/3.x/forms/fields/file-upload
6 replies
Use metronic or any other admin panel with filament ?
Filament is, itself, a panel provider so trying to incorporate it really doesn’t make a lot of sense. Are you trying to move to Laravel? I think you’ll need to create it from scratch in Filament.
12 replies
Resource sub-navigation in a modal
@NeerGreeN Give a little more context. Tell us the business case and problem you’re trying to solve. Based on what I’ve read, you probably need to create a custom page to do what you described but I’m not sure. What else can you tell us?
14 replies
Thoughts on best practices for a View
I’m not familiar with this plugin but it may be an option for you: https://filamentphp.com/plugins/aymanalhattami-page-with-sidebar
7 replies