title: use carbon function in laravel view(Blade template)
body: <p>I get some values from the database and I passed those values into view from the <strong>controller</strong>. now I want to use that data with some <code>carbon function</code> in <strong>Laravel view</strong>.</p>
  
  <p>In my View file I wrote </p>
  
  <pre><code>foreach($customer as $time){
  
          $create= $time-&gt;created_at;
          $update= $time-&gt;updated_at;
  
          $create_at_difference=\Carbon\Carbon::createFromTimestamp(strtotime($create))-&gt;diff(\Carbon\Carbon::now())-&gt;days;
  
  
  }
  </code></pre>
  
  <p>when I try like this it returns <code>"Class 'Carbon' not found"</code></p>
  
  <p><strong>How can I do this?</strong></p>