Skip to content

Commit

Permalink
[5.5] Add policies method to Gate (#21036)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad Roseffendi authored and taylorotwell committed Sep 6, 2017
1 parent 345f7c9 commit c276af8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Auth/Access/Gate.php
Original file line number Diff line number Diff line change
Expand Up @@ -532,4 +532,14 @@ public function abilities()
{
return $this->abilities;
}

/**
* Get all of the defined policies.
*
* @return array
*/
public function policies()
{
return $this->policies;
}
}

0 comments on commit c276af8

Please sign in to comment.