Writing Policies: Methods Without Models

/**
 * Determine if the given user can create posts.
 *
 * @param  \App\User  $user
 * @return bool
 */
public function create(User $user)
{
    //
}

Some policy methods only receive the currently authenticated user and not an instance of the model they authorize.

Writing Policies: Methods Without Models — Structure map

Clickable & Draggable!

Writing Policies: Methods Without Models — Related pages: