Change Timezone in Lumen or Laravel 5

In Laravel or Lumen, you can set the timezone for your application by setting the timezone option in your config/app.php configuration file.

You can also set the timezone at runtime by using the date_default_timezone_set function in PHP.

Watch a course Learn object oriented PHP

For example, to set the timezone to Europe/Paris, you can use the following code:

date_default_timezone_set('Europe/Paris');

You can find a list of all the available timezones in the PHP documentation at http://php.net/manual/en/timezones.php.