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

Commit

Permalink
Update is() method since it conflicts with Laravels default eloquent …
Browse files Browse the repository at this point in the history
…is() method
  • Loading branch information
kaidesu committed Aug 24, 2016
1 parent 2f90fdc commit 5e1e847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/ShinobiTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getRoles()
* @param string $slug
* @return bool
*/
public function is($slug)
public function isRole($slug)
{
$slug = strtolower($slug);

Expand Down Expand Up @@ -198,7 +198,7 @@ public function __call($method, $arguments = array())
if (starts_with($method, 'is') and $method !== 'is') {
$role = substr($method, 2);

return $this->is($role);
return $this->isRole($role);
}

// Handle canDoSomething() methods
Expand Down

0 comments on commit 5e1e847

Please sign in to comment.