Custom Validation Message

Laraship QuestionsCategory: TechnicalCustom Validation Message
Betty Kumahor asked 4 years ago
Hi,   How do I write custom error messages when validation fails? I don't want to use field names which is the default.
1 Answers
laraship Staff answered 4 years ago
Hello, In your request class you need to add messages function¬†   for example  
public function downloadableMessages($messages)
{
$messages['downloads.required'] = trans('Ecommerce::exception.misc.least_should_upload');

return $messages;
}