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