How to prevent accidental data leak

Filament uses model policies to prevent unauthorized access.

I have had situations where I forgot to add model policies, especially for existing models and I add the resource to Filament.

Maybe the solution is a Laravel thing rather than Filament, but how can I prevent such error?

More specifically: How can I make Filament blow up (throw Exception or something) when a resource is accessed and the underlying model does not have any policy class?
Was this page helpful?