- If your users come from many timezones, consider keep using UTC, leave the timezone configuration on the user side. Use this package for timezone conversion.
- If you're using Laravel 11, you can use .env instead.
Change method boot
use Carbon\Carbon;
public function boot()
{
config(['app.locale' => 'id']);
Carbon::setLocale('id');
}
Change separated values
'timezone' => 'Asia/Jakarta',
'locale' => 'id',
'faker_locale' => 'id_ID',
Try this step in views or controller also step is recommended here
Carbon\Carbon::parse('2019-03-01')->translatedFormat('d F Y');
Run this artisan commmand after setting the configuration
php artisan config:clear