Hello, I have a problem with php laravel. After using the project for some time, it crashes the server with this error (I sent an image) And what can this error be due to? I don't understand this error too much. I have php laravel with version 9.39.0, and on xampp server. Laravel I fire up the comment php artisan serve --host:[ip of my virtual machine].
#PHP laravel. error serve command
10 messages · Page 1 of 1 (latest)
On which request to which route does it crash or does it crash randomly?
Crashes with artisan serve mostly happen caused by code that throws an error or exception.
Is there anything inside your log file? Default would be storage/logs/laravel.log
It is random. Sometimes it crashes after 5 minutes, sometimes after even 2 days
There was an issue with a PHP version update a while back, so update your Laravel version, since you're behind on rather quite a few versions, latest 9.x release is 9.52.16 iirc. Make a habit of updating your app, it contains fixes, security patches etc.
Tell me more how do I update the laravel version? I changed in composer.json file laravel/framework from 9.39 to version 9.52.16 then I did composer update but it didn't show me the changes
So what does php artisan --version show?
Either way, you should regularly do patch updates, look how composer works, know how to use composer commands like composer outdated, composer update package etc
I changed the version of laravel, did all the updates but still the same error is there
So which error are we talking about specifically? You've shown 2 errors, one of which I think would be solved by updating the Laravel framework. Or maybe it's only fixed in 10.x, dunno.
Just about the same error. Unfortunately it still comes out This error from servecommand. I can't update to laravel 10 because I am using laravel-views and it is not updated to laravel 10