Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hamzaelmaghari's avatar

Laravel 8 date locale doesn't work

Hi friends, I hope you're doing well today, I'm working on a Laravel 8 project and wanted to use Arabic date locale for example I want Monday to be (الإثنين), I don't use Carbon just the default PHP date.

Thanks for help friends <3

In the app .php I have these locales:

'timezone' => 'Africa/Casablanca',

'locale' => 'ar',

'fallback_locale' => 'ar',

'faker_locale' => 'ar_MA',
0 likes
4 replies
hamzaelmaghari's avatar

Didn't work as I expected it caused me some issues, I have many models & controllers with included date parameters I include date inside views like this:

{{ date('d M Y',strtotime($featured->updated_item)) }}

hamzaelmaghari's avatar

I appreciate your help @jlrdw I think it's okay to use it as the date format dd-mm-yy this is readable to all languages. Thanks

Please or to participate in this conversation.