Example #1
0
 public static function exists($field, $value)
 {
     $matched_row = DB::table('users')->where($field, $value)->get();
     if (count($matched_row)) {
         self::$matched_row = reset($matched_row);
         return true;
     }
     return false;
 }