title: Object of class stdClass could not be converted to string Laravel 5
body: <p>I have a problem when i make a query in blade laravel 5</p>
  
  <pre><code> @foreach($dates_chart_debit as $date)
  &lt;?php
  
  $result =  DB::table('productions')
  -&gt;join('durees', 'productions.duree_id', '=', 'durees.id')
  -&gt;where(DB::raw("Date(productions.date)") ,"=",$date)
  -&gt;where('productions.puit_id' ,"=",1)
  -&gt;where(DB::raw("durees.isInReport") ,"=",'1')
  -&gt;where('final_validation' ,"=",'1')
  -&gt;select(DB::raw("sum(debit) as debit"))-&gt;first()-&gt;get();
  ?&gt;
  
  {{$result-&gt;debit}}
  @endforeach
  </code></pre>
  
  <p>it gives me an error message like </p>
  
  <pre><code>Object of class stdClass could not be converted to string (View: C:\Program Files\EasyPHP-DevServer-14.1VC9\data\localweb\projects\Coil\resources\views\panel\chart\executive.blade.php)
  </code></pre>
  
  <p>and what is the best way to do that</p>