Apply the controlled scope on needed queries.
controlled
Post::controlled() ->get();
Policies are secured by default for the common method: viewAny, view, update, create, delete, restore, forceDelete.
viewAny
view
update
create
delete
restore
forceDelete
$user->can('view', $post) // Will call the policy and Access Control
Controls
Apply your security in all Laravel's places right here !
Scout integration
Secure your Laravel Scout queries, the easy way!
Table of Contents
Community
Sponsors
French leader in IT performance support