JUNIORCEDE1

Untitled

Jul 26th, 2021
858
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $validator = Validator::make($request->all(),[
  2.     tus reglas...
  3. ]);
  4. if(($validator->passes())){
  5.     sigue aqui con los create
  6. }
  7. else{
  8.     return response()->json(['error'=>$validator->errors()]);
  9. }
RAW Paste Data