title: How to use laravel permissions in react front end?
body: <p>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</p>
  <pre><code>@if(auth()-&gt;user()-&gt;hasPermission('customers','view'))
  
                              &lt;li class=&quot;kt-menu__item {{ Request::segment(1) == 'customers' ? 'kt-menu__item--active' : '' }}&quot; aria-haspopup=&quot;true&quot;&gt;
                                  &lt;a href=&quot;{{route('customers.index')}}&quot; class=&quot;kt-menu__link &quot;&gt;
                                      &lt;span class=&quot;kt-menu__link-icon&quot;&gt;&lt;i class=&quot;fa fa-users&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt;
                                      &lt;/span&gt;
                                      &lt;span class=&quot;kt-menu__link-text&quot;&gt;Customers&lt;/span&gt;
                                  &lt;/a&gt;
                              &lt;/li&gt;
  
                              @endif
  
  </code></pre>
  <p>How i can do this in react js ?</p>