Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ulmaull/6e5d0ed84861f1e3e244ce6e5a4481de to your computer and use it in GitHub Desktop.

Select an option

Save ulmaull/6e5d0ed84861f1e3e244ce6e5a4481de to your computer and use it in GitHub Desktop.

Revisions

  1. Ahmad Shobirin renamed this gist Jan 10, 2019. 1 changed file with 0 additions and 0 deletions.
  2. Ahmad Shobirin revised this gist Sep 4, 2018. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions laravel, php
    Original file line number Diff line number Diff line change
    @@ -4,12 +4,13 @@ public function boot()
    {
    config(['app.locale' => 'id']);
    Carbon::setLocale('id');
    // Resource::withoutWrapping();
    date_default_timezone_set('Asia/Jakarta');

    }

    // config/app.php

    'timezone' => 'Asia/Jakarta',
    'locale' => 'id',
    'faker_locale' => 'id_ID',
    'faker_locale' => 'id_ID',

  3. Ahmad Shobirin created this gist Sep 4, 2018.
    15 changes: 15 additions & 0 deletions laravel, php
    Original 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',