title: Laravel datatable shows role name
body: <p>good I have users with different roles, and I would like to know how I can show in my datatable instead of the id of the role, I want to see the name of the role ..</p>
  
  <pre><code>public function index(Request $request)
  {
     // $users = User::orderBy('id', 'ASC')-&gt;paginate(5);
      //return view('admin.users.index', ['users' =&gt; $users]);
      if($request-&gt;ajax()){
  
          $data = User::latest()-&gt;get();
          return DataTables::of($data)
              -&gt;addColumn('accion',function($data){
                  $button = '&lt;button type="button" name="edit" id="'.$data-&gt;id.'" class="edit btn btn-primary btn-sm"&gt;Edit&lt;/button&gt;';
                  $button .= '&lt;button type="button" name="delete" id="'.$data-&gt;id.'" class="delete btn btn-danger btn-sm"&gt;Delete&lt;/button&gt;';
                  return $button;
              })
          -&gt;rawColumns(['accion'])
          -&gt;make(true);
      }
      return view('admin.users.index');
  }
  </code></pre>
  
  <p>datatable.js</p>
  
  <pre><code>$(document).ready( function () {
     $('#table').DataTable({
              processing: true,
              serverSide: true,
              ajax: "/admin/users/",
              columns:
              [
                {
                  data: 'id',
                  name: 'id',
                },
                {
                   data:'name',
                   name: 'name',
                },
                {
                   data:'email',
                   name: 'email',
                },
                {
                   data:'role_id',
                   name: 'role_id',
                },
                {
                   data:'accion',
                   name: 'accion',
                   orderable:false
                },
              ]
          });
  } );
  </code></pre>
  
  <p>it shows me the id of the role, but I want to access the name property of the role</p>