I created a virtual host and when entering the URL sometimes it opens the Laravel page and other times it throws me that DateTime error, how can I solve it? Searching I found this:
I do the php artisan key:generate but nothing happens, which follows the post about changing the date format $datetime = DateTime::createFromFormat('mdY', '06-23-2014'); I don't understand where I should do it, I repeat I haven't programmed anything yet, sometimes the Laravel page loads and other times I get the error that I mentioned.
Everything seems to indicate that it is a Carbon error (The package that handles dates in Laravel) in its version 1.24.1
According to its creators, it was already quickly fixed in version 1.24.2:
https://github.com/briannesbitt/Carbon/issues/1184