title: Laravel 5.6 time ago in views
body: <pre><code>&lt;?php
  
  namespace project1\Http\Controllers;
  
  use Illuminate\Http\Request;
  use Illuminate\Support\Facades\DB;
  use View;
  
  class IndexController extends Controller
  {
      public function index() 
      {
            $users  = DB::table('users')-&gt;orderBy('created_at','desc')-&gt;limit(5)-&gt;get();
            return View::make('pages.dashboard.dashboard',['users' =&gt; $users]);
      }
  }
  </code></pre>
  
  <p>Is it possible to echo the Time Ago in my View ( <strong>pages.dashboard.dashboard</strong> ) Something Like,</p>
  
  <pre><code>{{ $user-&gt;created_at-&gt;diffForHumans() }}
  </code></pre>
  
  <p>Expecting output like,</p>
  
  <pre><code>1 min ago
  </code></pre>