File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ You can check if a user belongs to a group with the `inGroup` method.
242242
243243``` php
244244$user = auth()->user();
245- if($user->inGroup('admin')) {
245+ if ($user->inGroup('admin')) {
246246 // do something
247247}
248248```
@@ -251,7 +251,7 @@ You can pass more than one group to the method and it will return `true` if the
251251
252252``` php
253253$user = auth()->user();
254- if($user->inGroup('admin', 'beta')) {
254+ if ($user->inGroup('admin', 'beta')) {
255255 // do something
256256}
257257```
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public function removeGroup(string ...$groups): self
8080 *
8181 * @return $this
8282 */
83- public function syncGroups (...$ groups ): self
83+ public function syncGroups (string ...$ groups ): self
8484 {
8585 $ this ->populateGroups ();
8686
@@ -189,7 +189,7 @@ public function removePermission(string ...$permissions): self
189189 *
190190 * @return $this
191191 */
192- public function syncPermissions (...$ permissions ): self
192+ public function syncPermissions (string ...$ permissions ): self
193193 {
194194 $ this ->populatePermissions ();
195195
You can’t perform that action at this time.
0 commit comments