Skip to content
This repository was archived by the owner on Aug 20, 2023. It is now read-only.

Commit f8489d1

Browse files
Updated setRole() method
1 parent 914903f commit f8489d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Traits/CrewTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public function setRole(...$roles)
4545
{
4646
if((bool)count($roles))
4747
return $this->roles()->sync(self::roleCollection(Arr::flatten($roles)));
48+
49+
return $this->roles()->sync($roles);
4850
}
4951

5052
/**

0 commit comments

Comments
 (0)