class ApiTokenPolicy

Traits

HandlesAuthorization

Methods

bool
create(User $user)

Determine if the given user can create API tokens.

bool
destroy(User $user, ApiToken $token)

Determine if the given token can be deleted by the user.

Details

at line 20
bool create(User $user)

Determine if the given user can create API tokens.

Parameters

User $user

Return Value

bool

at line 32
bool destroy(User $user, ApiToken $token)

Determine if the given token can be deleted by the user.

Parameters

User $user
ApiToken $token

Return Value

bool