以documentations为基础.Exists可以有4个参数:
exists:table,id,where,0
The question is, What if I wanted it to be where is not. Like where is not 0.
$validator = Validator::make(
array(
'groups' => $groups
),
array(
'groups' => 'required|exists:groups,jid,parent,!=,0'
)
);