Forked from dzulfahmi/set locale and timezone indonesia in laravel
Created
December 14, 2021 02:57
-
-
Save WahidinAji/4b25bb673dbc75d89b4cc9530f2bb502 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open File -> App\Providers\AppServiceProvider | |
And change method boot | |
public function boot() | |
{ | |
config(['app.locale' => 'id']); | |
Carbon::setLocale('id'); | |
} | |
Open File and changes -> config/app.php | |
'timezone' => 'Asia/Jakarta', | |
'locale' => 'id', | |
'faker_locale' => 'id_ID', | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
run
php artisan config:clear
before run app..