Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
lists() to pluck()
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidesu committed Aug 24, 2016
1 parent 5e1e847 commit 0747f00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Models/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function permissions()
*/
public function getPermissions()
{
return $this->permissions->lists('slug')->all();
return $this->permissions->pluck('slug')->all();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/ShinobiTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function roles()
public function getRoles()
{
if (! is_null($this->roles)) {
return $this->roles->lists('slug')->all();
return $this->roles->pluck('slug')->all();
}

return null;
Expand Down

0 comments on commit 0747f00

Please sign in to comment.