search

Home  >  Q&A  >  body text

When laravel form requests verification, if there is data, it will be verified. If there is no data, it will not be verified.

For example, I have a table with fields name, qq, tel, email

Then when submitting, the name is a page form request and only one field name is requested, and the qq field is also a method and only QQ is requested

If required is not written in the verification rule, it will be fine when requesting

But how do I verify whether the requested data is empty and not conflict with my request?

过去多啦不再A梦过去多啦不再A梦2841 days ago507

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 16:50:53

    sometimes

    Many times, reading the document carefully can save a lot of trouble

    https://laravel.com/docs/5.3/...

    reply
    0
  • Cancelreply