public function listPriorities() { return array('' => ' ') + Priority::lists('priority', 'id')->toArray(); }
/** * get the list of priorities * @return mixed */ protected function priorities() { return Priority::groupBy('priority')->lists('priority'); }