I am trying to show the full name of the current month in Dutch. I tried this as follows:
\Carbon\Carbon::now()->subMonth()->format('F')
But then I see July, not what I want. The service of my application provider is as follows:
public function boot()
{
Carbon::setLocale('nl');
}
Any idea what I can do to get this to work?
(diffForHumans is working correctly)
source
share