[Laravel 5] Call to undefined method Illuminate\Foundation\Bootstrap\ConfigureLogging::configureHandler()

If you are getting following error:

PHP Notice:  date_default_timezone_set(): Timezone ID '' is invalid in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 45

[2017-10-16 19:50:38] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Foundation\Bootstrap\ConfigureLogging::configureHandler() 
                                                                                                 
  [Symfony\Component\Debug\Exception\FatalThrowableError]                                        
  Call to undefined method Illuminate\Foundation\Bootstrap\ConfigureLogging::configureHandler()  
                                                                                                 

Try editing composer.json and set laravel/framework to 5.*, e.g.

        "laravel/framework": "5.*",

Then run composer update again.
Also, make sure config/app.php exists!

Laravel 5 installation error – Parse error: syntax error, unexpected ‘class’ (T_CLASS)

If you get

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in I:\PP\public\index.php on line 50

error while installing Laravel 5, you are probably running on old PHP version – make sure to upgrade to 5.6.* and higher.

Crafting application...

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T
_STRING) or variable (T_VARIABLE) or '{' or '$' in I:\PP\artisan on line 31
Script php artisan clear-compiled handling the post-install-cmd event returned w
ith an error

[RuntimeException]
Error Output:

run-script [--dev] [--no-dev] [-l|--list] [script] [args1] ... [argsN]

Application ready! Build something amazing.

Solution
Update to newer version of PHP.