Support the ongoing development of →
Views Blade
Last updated 1 year ago.

I solved this way:

          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

Last updated 1 year ago.

Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.