php - Remove stack trace from Laravel error page

one text

Solution:

Simply override the render() method in your app's exception handler. Per comments in the base class, this method must return a response object.

public function render($request, \Throwable $e)
{
    return response()->view("exception", ["exception" => $e]);
}

Then make your blade view look however you want.

<!doctype html>
<title>Exception</title>
<body>
<p>
Exception of type <code>{{ get_class($exception) }}</code>
thrown in <code>{{ $exception->getFile() }}</code>
on line <code>{{ $exception->getLine() }}</code>.
</p>
</body>

Source