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