title: Yajra Datatables and Entrust package
body: <p>I'm working with role based permission using Zizaco Entrust package with yajra datatables.
  when i'm giving permission to some users i have to touch datatables also.
  This is my code ,</p>
  
  <pre><code>   Controller.php
               Datatables::of(User::where('company_id',$company_id)-&gt;get())
                  -&gt;addColumn('action', '@permission('user-edit')
      &lt;a href="{{route("users.show",$id)}}" class="btn btn-xs btn-info"&gt;View&lt;/a&gt;@endrole
              &lt;a href="{{route("users.edit",$id)}}" class="btn btn-xs btn-primary"&gt;Edit&lt;/a&gt;')
             -&gt;make(true);
  </code></pre>
  
  <p>when i use permission inside datatables it is getting error , any one having idea to solve this ??same question in 
  <a href="https://stackoverflow.com/questions/41848347/yajra-datatables-and-entrust-role-permission-laravel">yajra datatables and entrust role permission laravel</a></p>