Is it possible to define a custom message for the exists:table,id rule? I tried the following
public function messages()
{
return [
'items.*.product_id' => [
'exists'=> 'Not found' // not working
'exists:products' => 'Not found' // not working
'exists:products,id' => 'Not found' // not working
]
];
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community