Lars-Janssen10 years agoLevel 33ReplyReport SpamFor example in your user model: public function hasRole($role) { if(strtolower($this->role->name) == strtolower($role)) { return true; } return false; } You could use this: https://github.com/Zizaco/entrust Like Reply
yassiNebeL10 years agoLevel 2ReplyReport Spamyou could find your happiness here : Sentinel Package the easier way to build authentication & permission system. Like Reply
jekinney10 years agoLevel 47ReplyReport Spamhttps://laracasts.com/lessons/users-and-roles Entrust is amazingly simple and built just for Laravel. Like Reply
yassiNebeL10 years agoLevel 2ReplyReport SpamAlso Sentinel 2.0 is compatible with Laravel 5 Check the documentation there are a section dedicated to Laravel 5. Like Reply