データベースに対して入力を検証したい, 私が試したのは,
$input = Input::all();
$notificationRules = Array(
'isReadAll' => 'required|boolean',
'visitedNotificationId' => 'required|exists:notification',
);
$runValidation = Validator::make($input, $validations);
しかし、場合にのみ 存在を確認する必要がisReadAll == false
あります.laravel検証にオプションはありますか、それともカスタムのものを作成する必要がありますか?