use Illuminate\Validation\Rule;
Rule::unique(‘helpness_type‘)->where(function($query)use($input){ return $query->where(‘id‘,‘!=‘,$input[‘id‘])->where(‘deleted_at‘, null);})
原文地址:https://www.cnblogs.com/JdsyJ/p/10421719.html
时间: 2024-10-10 20:16:24
use Illuminate\Validation\Rule;
Rule::unique(‘helpness_type‘)->where(function($query)use($input){ return $query->where(‘id‘,‘!=‘,$input[‘id‘])->where(‘deleted_at‘, null);})
原文地址:https://www.cnblogs.com/JdsyJ/p/10421719.html