nicolaibaaring
Eloquent query using integers not working in Filament context
Just as an additional note, this is using MySQL and the database strict setting does not change anything.
The problem is only found when using integers and when the query is running in a Filament context.
4 replies
Eloquent query using integers not working in Filament context
A simple builder dd() gives this:
So these are all integers.
In this case, the table query works, and gives the right results, but clicking a row to open the modal (this is a simple resource) does not open the modal (same as ModelNotFound).
I might have mentioned it wrong above, because the missing models in the table vs the infolist/form depends on which params are cast to string.
If I add a method to my custom query builder that converts all numeric params to string, then both the table and the infolist/form works as intended.
4 replies
Query string on simple resource modals
Similar to this unanswered question: https://discord.com/channels/883083792112300104/1238160377024352407
3 replies