📜  laravel 验证如果另一条记录没有被删除不为空 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:39.575000             🧑  作者: Mango

代码示例1
'user_id' =>'required|exists:App\Models\Users,id,deleted_at,!NULL' // if deleted_at is not null
'user_id' =>'required|exists:App\Models\Users,id,deleted_at,NULL' // if deleted_at is null