title: how to show image in laravel yajra datatables?
body: <p>I have this error GEThttp://localhost:8000/report/<code>[object%20Object]</code></p>
  <p>I want to display user image in reports table.</p>
  <p>my controller code:</p>
  <pre><code>public function index(Request $request)
      {
         if ($request-&gt;ajax()) {
              $data = Report::with('user','presidents', 'years', 'quarters', 'points')-&gt;select('reports.*');
  
          return Datatables::of($data)
              // -&gt;addIndexColumn()
              -&gt;addColumn('created_at', function ($data) {
                    return jdate($data-&gt;created_at)-&gt;format('Y-m-d');
              })
            -&gt;addColumn('image', function ($report) { 
                      $url=asset(&quot;$report-&gt;user-&gt;image['thumb']&quot;); 
                      return '&lt;img src='.$url.' border=&quot;0&quot; width=&quot;40&quot; class=&quot;img-rounded&quot; align=&quot;center&quot; /&gt;'; 
              })
              -&gt;addColumn('action', 'action', 'image')
               -&gt;make(true);
          }
  
          return view('reports.index');
      }
  </code></pre>
  <p>js code:</p>
  <pre><code> { data: 'user.image', name: 'user.image',
         render: function( data, type, full, meta ) {
             return &quot;&lt;img src=\&quot;/report/&quot; + data + &quot;\&quot; height=\&quot;50\&quot;/&gt;&quot;;
       }
   },
  </code></pre>