apl-mhd

validation

Mar 28th, 2019
157
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $validator = Validator::make($request->all(), [
  2. 'post-title' => 'required',
  3. 'price' => 'required',
  4. 'example-rd-custom-inline' => 'required',
  5. 'example-rd-custom-primary-lg' => 'required',
  6. 'sell_type' => 'required',
  7. 'condition' => 'required',
  8. 'description' => 'required',
  9. 'img-up' => 'required',
  10. 'img-up.*' => 'image|mimes:jpeg,png,jpg,gif,svg|max:2048',
  11. 'name' => 'required',
  12. 'password' => 'sometimes|required',
  13. 'email' => 'required',
  14. ]);
RAW Paste Data