DEV Community

Cover image for Config Timezone Laravel in Your Project
Asep Septiadi
Asep Septiadi

Posted on

Config Timezone Laravel in Your Project

Default project timezone is

Image description

Change to

Image description

Restart artisan serve & tinker

Image description

Lalu lakukan proses update data pada record database melalui tinker

Sebelum

Image description

> App\Models\Barang::where('id', 1)->update([
'nama_barang' => 'Pocky Chocolate Mix 5 Stick Gelegar'                                                  ]);
= 1
Enter fullscreen mode Exit fullscreen mode

Sesudah

Image description

Top comments (0)