如何設定 復雜 Validate rule
在 validation rule 可以設定
'staffid' => 'required |unique:staffid', staffid 只會出現一次.
但如何設定如 staffid 和 departmentid 只能出現一次,
推荐文章: