@Čamo My guess would be you need to adjust the file permissions on your storage/logs directory. If it doesn't have access to write to the file, it has nothing else to do but throw a 500 and abort.
Dec 19, 2024
3
Level 3
Production Laravel 11 does not log Target class xz does not exist error
I forgot to commit one middleware class file to the server and it did not log any errror. When I try to use non existing class on my local machine it throws clear errro 500 Target class Test2 does not exist. Can somebody tell me if I forgot to set something on production server as a reason why I can not find anything in laravel.log file? Server returns error 500 but I dont see any error in log file.
Please or to participate in this conversation.