checkRole() публичный Метод

Check if an authority has the given roles.
public checkRole ( Model $authority, array | string $roles, string $boolean = 'or' ) : boolean
$authority Illuminate\Database\Eloquent\Model
$roles array | string
$boolean string
Результат boolean
Пример #1
0
 /**
  * Check if the user has all of the given roles.
  *
  * @param  string  $role
  * @return bool
  */
 public function all($role)
 {
     $roles = func_get_args();
     return $this->clipboard->checkRole($this->user, $roles, 'and');
 }