set timezone in laravel 8

edit file /config/app.php and change value of timezone

'timezone' => 'Asia/Dhaka'

Using Environment file (.env)

Inside env
add DB config
DB_TIMEZONE=+08:00

Leave a Reply