title: How to fix it Call to a member function diffForHumans() on string in laravel 5.3
body: <p>Why when I use query builder instead there is an error on the function diffForHumans (), but if I use ELoquent ROM but no error there is a way to overcome it? (How can i fix it) thank you</p>
  
  <p><a href="https://i.stack.imgur.com/MvsXD.png" rel="noreferrer">diffForHumans()</a></p>
  
  <p>this is <strong>ArticlesController.php</strong></p>
  
  <pre><code>namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use App\Article;
  use Carbon\Carbon;
  use Auth;
  use DB;
  
  class ArticlesController extends Controller
  {
  
      public function index()
      {
          $articles =DB::table('articles')-&gt;get();
          $articles = ['articles'=&gt;$articles];
          return view('articles.index',$articles);
      }
  }
  </code></pre>
  
  <p>this is model <strong>Article.php</strong></p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  use Carbon\Carbon;
  use Illuminate\Database\Eloquent\SoftDeletes;
  
  class Article extends Model
  {
      //
      use SoftDeletes ;
  
      protected $fillable = [
          'user_id','content','live','post_on',
      ];
  
      protected $dates =[
          'post_on','deleted_at','created_at','updated_at',
      ];
  
      public function setLiveAttribute($value)
      {
          $this-&gt;attributes['live'] = (boolean)($value);
      }
  
      public function getShortContentAttribute()
      {
          return substr($this-&gt;content,0,random_int(60,150))."...";
      }
  
      public function setPostOnAttribute($value)
      {
          $this-&gt;attributes['post_on'] = Carbon::parse($value);
      }
  
      public function setCreatedAtAttribute($value)
      {
          $this-&gt;attributes['post_on'] = Carbon::parse($value);
      }
  
  
  
  }
  </code></pre>
  
  <p>and that is my code, how i can fix it? 
  thank you</p>