trait Illuminate / Foundation / Auth / Access / Authorizable
You are viewing an older version of the documentation. For the latest, please visit master documentation.

Authorizable

Methods

public

can ( $abilities , $arguments ) : bool

Determine if the entity has the given abilities.

Parameters

  • $abilities iterable|string
  • $arguments array|mixed
public

canAny ( $abilities , $arguments ) : bool

Determine if the entity has any of the given abilities.

Parameters

  • $abilities iterable|string
  • $arguments array|mixed
public

cant ( $abilities , $arguments ) : bool

Determine if the entity does not have the given abilities.

Parameters

  • $abilities iterable|string
  • $arguments array|mixed
public

cannot ( $abilities , $arguments ) : bool

Determine if the entity does not have the given abilities.

Parameters

  • $abilities iterable|string
  • $arguments array|mixed