You can customize the verification, it seems a bit complicated... My level is limited, you can read the official documents by yourself
You can also think of it as a simple and crude method, write your join table query verification logic in Controller and manually redirect and throw an error if there is an exception, as shown in the following code
Depending on your situation, using the built-in rules is not enough and you need to create new rules yourself. Here is an example of creating a rule to verify Chinese
https://laravel.com/docs/5.3/...
You can customize the verification, it seems a bit complicated... My level is limited, you can read the official documents by yourself
You can also think of it as a simple and crude method, write your join table query verification logic in
Controller
and manually redirect and throw an error if there is an exception, as shown in the following codeYes, use
exists
rules, such asDepending on your situation, using the built-in rules is not enough and you need to create new rules yourself. Here is an example of creating a rule to verify Chinese
Refer to the Custom Validation Rules section of the document for details.