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 line20
bool create(User$user)

Determine if the given user can create API tokens.

Parameters

User $user

Return Value

bool

at line32
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