php artisan vendor:publish --tag=laravel-errors update the error page file according to the code @section('message', __($exception->getMessage() ?: 'Server Error'))