I have set the ACL of the laravel application . I have developed role each role has specific permissions. In laravel blade it is very easy check permissions like this
@if(auth()->user()->hasPermission('customers','view'))
<li class="kt-menu__item " aria-haspopup="true">
<a href="" class="kt-menu__link ">
<span class="kt-menu__link-icon"><i class="fa fa-users" aria-hidden="true"></i>
</span>
<span class="kt-menu__link-text">Customers</span>
</a>
</li>
@endif
How i can do this in react js ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire