Skip to content

Commit 9c5e58a

Browse files
lonnieezellMGatnerkenjis
authored
Apply suggestions from code review
Co-authored-by: MGatner <mgatner@icloud.com> Co-authored-by: kenjis <kenji.uui@gmail.com>
1 parent a61f7e1 commit 9c5e58a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
```

src/Authorization/Traits/Authorizable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)