Inside config/app.php

replace timezone
‘timezone’ => ‘Asia/Singapore’

Inside env

add DB config
DB_TIMEZONE=+08:00

https://rdevs.xyz
Do you like Ashiqur Rahman's articles? Follow on social!
Comments to: How to set Timezone in Laravel

Your email address will not be published. Required fields are marked *

Attach images - Only PNG, JPG, JPEG and GIF are supported.

Login

Welcome to rDevs

Brief and amiable onboarding is the first thing a new user sees in the theme.
Join rDevs

start writing