$validator = Validator::make(compact('id'), [
'id' => 'required|integer|exists:events,sal_codigo',
]);
if ($validator->fails()) {
return redirect('xxxxx')->withErrors($validator)->withInput();
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community