Brian Kidd
Brian Kidd
FFilament
Created by Arshavir on 11/7/2024 in #❓┊help
ToggleButtons are requiring a double-click to change their state
Do you have any casts on the model?
27 replies
FFilament
Created by Arshavir on 11/7/2024 in #❓┊help
ToggleButtons are requiring a double-click to change their state
Is it a boolean? It almost sounds like the value coming from the db isn’t what the form component is expecting? Can you give more details about how it is stored in the db?
27 replies
FFilament
Created by baryca on 11/3/2024 in #❓┊help
Action button
3 replies
FFilament
Created by Tosgat on 10/23/2024 in #❓┊help
Open a second require confirmation modal from the first require confirmation modal
3 replies
FFilament
Created by Mehmet K. on 10/14/2024 in #❓┊help
Is it Possible to Open a Modal within Another Modal in Laravel Filament?
3 replies
FFilament
Created by 403gtfo on 9/26/2024 in #❓┊help
Sort one to many TextColumn based on formatted state?
Can’t you add the virtual column to the table with the data and then use that column for sorting?
9 replies
FFilament
Created by 403gtfo on 9/26/2024 in #❓┊help
Sort one to many TextColumn based on formatted state?
Someone may have a way to do this in filament but I would create a model scope that adds this field at the database level or create a virtual column on the database that does this.
9 replies
FFilament
Created by John Trickett on 8/31/2024 in #❓┊help
Relation Manager for pivot table
I agree, complex models like this sometimes require doing this. In my opinion, you’re on the right track with that thinking
6 replies
FFilament
Created by John Trickett on 8/31/2024 in #❓┊help
Relation Manager for pivot table
@John Trickett If a service belongs to a site, you should only have service and contractor in the pivot table. Does a relationship exist between site and service?
6 replies
FFilament
Created by hosmar27 on 7/24/2024 in #❓┊help
Eloquent query inside foreach
On your Cargo model, have you considered creating a many to many relationship named ‘questions’ that is the same as the relationship to Formulario but includes the where clause to only get the questions?
12 replies
FFilament
Created by ChesterS on 7/24/2024 in #❓┊help
Show Filament notification when database notification is received
I think you need to check broadcasting notifications: https://filamentphp.com/docs/3.x/notifications/broadcast-notifications
5 replies
FFilament
Created by hosmar27 on 7/24/2024 in #❓┊help
Eloquent query inside foreach
Why would you want to do that? What are you trying to accomplish? This isn’t a Filament question but I’ll try to help you if I can better understand what you are trying to do
12 replies
FFilament
Created by harps on 7/4/2024 in #❓┊help
Query scoping
Yes the dot notation will force that relationship to eager load
6 replies
FFilament
Created by harps on 7/4/2024 in #❓┊help
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
FFilament
Created by Yurikaso on 1/24/2024 in #❓┊help
How do I show the data from the description of another table and not a number?
Does your model have a relationship for this?
33 replies
FFilament
Created by NikkiP on 1/20/2024 in #❓┊help
How to get the record id of the table record when using a query with inner joins.
Do you have relationships defined in your models?
8 replies
FFilament
Created by Treebeard on 1/19/2024 in #❓┊help
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
FFilament
Created by urbycoz on 1/18/2024 in #❓┊help
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
FFilament
Created by JJSanders on 1/13/2024 in #❓┊help
Large import 419
Have you updated your max file upload size on your server?
11 replies