define time zone in laravel controller code example
Example 1: date_default_timezone_set for india in php laravel
Inside config/app.php
replace timezone
'timezone' => 'Asia/Kolkata'
Example 2: laravel timezone
Inside env
add DB config
DB_TIMEZONE=+08:00