/** * Implement getAll() */ public function getAll($limit = 10) { // using the Eloquent model if ($limit == 0) { return PerformanceTally::get(); } elseif ($limit == 1) { return PerformanceTally::first(); } return PerformanceTally::limit($limit)->get(); }