search

Home  >  Q&A  >  body text

Validation rules - how thinkphp5.0 validator validates data against the database

< /p>

The document uses regular expressions. I want to check in the database whether this user can operate.
How to verify this? 
PHPzPHPz2798 days ago394

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-16 13:06:32

    The custom validation rules section in the official documentation has been described very clearly.
    If you need to check whether the user can operate in multiple places, it is recommended to use permission authentication (RBAC or OAuth).

    reply
    0
  • Cancelreply