canEdit() (etc) on Filament resources

Hi all, I think I am being dense but I cannot find any documentation in Filament v3 around the canEdit, canDelete, etc. methods on a filament resource within a dashboard

A typical location for what I am talking about would be App/Filament/Admin/Resources/SpecificResource.php

Can anyone help point me in the right direction?

From testing, it seems if I have something defined here it over-rides the laravel policies for that same model. It also seems to only impact the model within the Filament panel, which makes sense.

I am trying to find the documentation to confirm this and also see if there is anything else I should consider.
Solution
also see if there is anything else I should consider.

Try to stick to policies as much as you can. Is there a reason you need to overwrite the behaviour in Filament?
Was this page helpful?