Skip to content

Commit

Permalink
change return type in has Roles
Browse files Browse the repository at this point in the history
  • Loading branch information
makladuxbert committed Apr 5, 2018
1 parent 3224187 commit e206f6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Traits/HasRoles.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function scopePermission(Builder $query, $permissions): Builder
*
* @param array|string|Role ...$roles
*
* @return $this
* @return array|Role|string
*/
public function assignRole(...$roles)
{
Expand All @@ -108,15 +108,15 @@ public function assignRole(...$roles)

$this->forgetCachedPermissions();

return $this;
return $roles;
}

/**
* Revoke the given role from the model.
*
* @param array|string|Role ...$roles
*
* @return HasRoles
* @return array|Role|string
*/
public function removeRole(...$roles)
{
Expand All @@ -131,7 +131,7 @@ public function removeRole(...$roles)

$this->forgetCachedPermissions();

return $this;
return $roles;
}

/**
Expand Down

0 comments on commit e206f6f

Please sign in to comment.