laravel default timezone code example
Example 1: laravel date set timezone
edit /config/app.php
'timezone' => 'Asia/Dhaka'
Example 2: date_default_timezone_set for india in php laravel
Inside config/app.php
replace timezone
'timezone' => 'Asia/Kolkata'
Example 3: laravel timezone
Inside env
add DB config
DB_TIMEZONE=+08:00
Example 4: how to change the default timezone setting in laravel
In Laravel Application, You can set your Application Time Zone by configuring app.php file in config folder. To change time zone , modify the value of timezone in config/app.php file.
by default ‘timezone’ => ‘UTC’,
'timezone' => 'UTC',
For Ex : i set my application time zone is ‘Asia/Kolkata’
'timezone' => 'Asia/Kolkata',
List of available timezones can be find in following URL http: