title: How to route in Laravel DataTables
body: <p>I am new to Laravel DataTables and i am trying to insert my controller in the datatables but i am getting an exception. </p>
  
  <p>How to get this done?</p>
  
  <p>PS: When I use the normal route like <code>user/items/'$users-&gt;id'/control</code>, it works fine but I want to use the the route like <code>UserController@edit, $user-&gt;id</code></p>
  
  <pre><code>public function getPost()
  {
      $users= User::where('id', Auth::user()-&gt;id);
      return Datatables::of($users)-&gt;addColumn('action', function ($user) {
          return '&lt;a href="{ action('UserController@edit', $user-&gt;id)}" title="edit" &gt;&lt;i class="fa fa-edit"&gt;&lt;/i&gt;&lt;/a&gt;
                  &amp;nbsp;&amp;nbsp;';
  
      })-&gt;make(true);     
  
  }
  </code></pre>