Advertisement
JUNIORCEDE1

Untitled

Jul 26th, 2021
1,090
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement