title: Laravel : How to localize dates within views with Carbon
body: <p>I'm trying to localize <strong>Carbon</strong> dates in a view in different languages with no success so far.</p>
  
  <p>I retrieve dates from a Model and send them to a view:</p>
  
  <pre><code>Route::get('/tables/setup', function(){
       $now=  Date::now('Europe/Paris');
  
       $active_tasks = GanttTask::whereDate('start_date', '&lt;',  $now)
          -&gt;whereDate('end_date', '&gt;', $now)
          -&gt;get();
  
       return view('my_view', compact('active_tasks'));
  
     });
  </code></pre>
  
  <p>and can easily display them in 'my_view':</p>
  
  <pre><code>  @foreach($active_tasks as $active_task)
  
       {{$active_task-&gt;start_date-&gt;format('l j F Y H:i:s')}}  //Friday 26 January 2018 09:19:54
  
       @endforeach
  </code></pre>
  
  <p>But I can not manage to render them in the desired language.</p>
  
  <p>I tried adding <code>Carbon::setLocale('it');</code> in the route or in the view with no effect.</p>
  
  <p><strong>EDIT:</strong> 
  slight error in my blade call <code>{{$active_task-&gt;start_date-&gt;format('l j F Y H:i:s')}}</code> instead of <code>{{$active_task-&gt;format('l j F Y H:i:s')}}</code></p>