I would like to print the time in local time in Laravel. If the user create a post it will display the created time on the server. How can I display it in local time ?
Go to app.php page in Config folder and change this
'timezone' => 'UTC',
to
'timezone' => 'addYourTimeZoneHere',
reference https://laravel.com/docs/5.5/configuration
find your timezone http://php.net/manual/en/timezones.php