Laratrust\Contracts\LaratrustUserInterface::attachRole PHP Method

attachRole() public method

Alias to eloquent many-to-many relation's attach() method.
public attachRole ( mixed $role, string $group = null )
$role mixed
$group string
    public function attachRole($role, $group = null);