public static function location($parameter = "") { if ($parameter == "") { return Md\Site::count(); } if ($parameter != "") { return Md\Site::where('category', $parameter)->count(); } }