I solved this way:
<?php
if (Auth::user()->ability('Admin',array('read'),$options = array('validate_all' => true))) {
echo("<li><a href='#'><span class='glyphicon glyphicon-certificate'></span>Hello</a></li>");
}
?>
Admin is my role and read is my permission, if user have this role and permission the item will appear
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community