trait Illuminate / Foundation / Auth / Access / Authorizable
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

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