modifyQueryUsing breaks ToggleColumn
in the
if the user is not admin, i want to show their created forms or the forms they are attached to.
the issue is that when i modify the query, if the user is admin, works just fine, but if the user is not admin, if the user toggles the
https://filamentphp.com/docs/3.x/panels/resources/listing-records#customizing-the-table-eloquent-query
i think the issue is related to the
im doing something wrong or it's actually a bug?
update:
i also tried it this way. this way makes the toggles to not change
app/Filament/Resources/FormResource.php file i set up the table:if the user is not admin, i want to show their created forms or the forms they are attached to.
the issue is that when i modify the query, if the user is admin, works just fine, but if the user is not admin, if the user toggles the
is_active column, it toggles the last row being shown in the table!https://filamentphp.com/docs/3.x/panels/resources/listing-records#customizing-the-table-eloquent-query
i think the issue is related to the
or. why? because if i change the orWhere to a where, the toggle works fine, but then the query is not the query i want.im doing something wrong or it's actually a bug?
update:
i also tried it this way. this way makes the toggles to not change