Forked from ahmadshobirin/set locale and timezone indonesia in laravel.md
Created
September 27, 2019 09:37
-
-
Save ulmaull/6e5d0ed84861f1e3e244ce6e5a4481de to your computer and use it in GitHub Desktop.
Revisions
-
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',