#PHP laravel. error serve command

10 messages · Page 1 of 1 (latest)

halcyon veldt
#

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].

raven star
#

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

halcyon veldt
#

It is random. Sometimes it crashes after 5 minutes, sometimes after even 2 days

viral crane
halcyon veldt
#

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

viral crane
#

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

halcyon veldt
#

I changed the version of laravel, did all the updates but still the same error is there

viral crane
#

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.

halcyon veldt
#

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