Essentials

Usage

The instructions in order to secure your application.

Query

Apply the controlled scope on needed queries.

Post::controlled()
    ->get();

Policies

Policies are secured by default for the common method: viewAny, view, update, create, delete, restore, forceDelete.

$user->can('view', $post) // Will call the policy and Access Control