Skip to content

Commit c276af8

Browse files
Mohammad Roseffenditaylorotwell
Mohammad Roseffendi
authored andcommitted
[5.5] Add policies method to Gate (#21036)
1 parent 345f7c9 commit c276af8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Illuminate/Auth/Access/Gate.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,4 +532,14 @@ public function abilities()
532532
{
533533
return $this->abilities;
534534
}
535+
536+
/**
537+
* Get all of the defined policies.
538+
*
539+
* @return array
540+
*/
541+
public function policies()
542+
{
543+
return $this->policies;
544+
}
535545
}

0 commit comments

Comments
 (0)