SHARE
TWEET

Untitled

a guest Aug 22nd, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function hasAnyRoles($roles)
  2.     {
  3.         if(is_array($roles) || is_object($roles)){
  4.             foreach ($roles as $role) {
  5.                 $this->hasAnyRoles($role);
  6.             }
  7.         }
  8.         return $this->roles->contains('name', $roles);
  9.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top