public static function get_totals($field, $value) { $total = Project::where($field, '=', $value)->count(); return $total; }