标签: laravel eloquent
假设客户表包含20个ID为1到20的客户。
有什么想法可以防止用户在发票表中提交customer_id = 21?
用户可以在提交之前尝试从html表单中更改customer_id。
答案 0 :(得分:0)
问题解决了,使用Laravel“存在”验证。