Level 73
You can always surround your query call with a try and catch.
try {
$result = DB::table('table_name')->where('GENDER', '=', $data['GENDER'])->delete();
} catch(\Illuminate\Database\QueryException $exception){
// $exception->getMessage() - will give you the error if any.
// Note any method of class PDOException can be called on $exception.
}