Last active
September 23, 2025 14:25
-
Star
(100)
You must be signed in to star a gist -
Fork
(26)
You must be signed in to fork a gist
-
-
Save ahmadshobirin/5e761c055b4bae2b13262ce9d58be2cb to your computer and use it in GitHub Desktop.
Revisions
-
ahmadshobirin revised this gist
Jan 2, 2023 . 1 changed file with 12 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,9 @@ Change method boot ``` use Carbon\Carbon; public function boot() { config(['app.locale' => 'id']); @@ -20,3 +23,12 @@ Change separated values 'faker_locale' => 'id_ID', ``` ### Display the date with Indonesian language Try this step in views or controller also step is recommended [here](https://gist.github.com/ahmadshobirin/5e761c055b4bae2b13262ce9d58be2cb?permalink_comment_id=3308262#gistcomment-3308262) ``` Carbon\Carbon::parse('2019-03-01')->translatedFormat('d F Y'); ``` -
ahmadshobirin renamed this gist
Mar 4, 2021 . 1 changed file with 10 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,22 @@ ## Open File App\Providers\AppServiceProvider Change method boot ``` public function boot() { config(['app.locale' => 'id']); Carbon::setLocale('id'); } ``` ### Open file config/app.php Change separated values ``` 'timezone' => 'Asia/Jakarta', 'locale' => 'id', 'faker_locale' => 'id_ID', ``` -
ahmadshobirin revised this gist
Nov 3, 2020 . 1 changed file with 5 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,18 +1,15 @@ 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', -
ahmadshobirin revised this gist
Nov 3, 2020 . 1 changed file with 9 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,16 +1,18 @@ Open File -> App\Providers\AppServiceProvider ``` public function boot() { config(['app.locale' => 'id']); Carbon::setLocale('id'); } ``` Open File -> config/app.php ``` 'timezone' => 'Asia/Jakarta', 'locale' => 'id', 'faker_locale' => 'id_ID', ``` -
Ahmad Shobirin renamed this gist
Jan 10, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Ahmad Shobirin revised this gist
Sep 4, 2018 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,12 +4,13 @@ public function boot() { config(['app.locale' => 'id']); Carbon::setLocale('id'); date_default_timezone_set('Asia/Jakarta'); } // config/app.php 'timezone' => 'Asia/Jakarta', 'locale' => 'id', 'faker_locale' => 'id_ID', -
Ahmad Shobirin created this gist
Sep 4, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ // App\Providers\AppServiceProvider public function boot() { config(['app.locale' => 'id']); Carbon::setLocale('id'); // Resource::withoutWrapping(); } // config/app.php 'timezone' => 'Asia/Jakarta', 'locale' => 'id', 'faker_locale' => 'id_ID',