一、
Setting APP_DEBUG=false in your .env file works fine for the frontend.
If you don't want the stack trace lines to be outputted in the log files only, try this.
二、
In /app/Exceptions/Handler.php add use Log; at the top, then add this in the report function:
Log::error('['.$e->getCode().'] "'.$e->getMessage().'" on line '.$e->getTrace()[0]['line'].' of file '.$e->getTrace()[0]['file']);
And remove:
parent::report($e);