Created
May 22, 2015 20:09
-
-
Save NightZpy/da4e57451d1b7f8e2c2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getAllForSelect() | |
{ | |
if($this->getModel()->first()->nombre) | |
return $this->getAll()->lists('nombre', 'id'); | |
return $this->getAll()->lists('name', 'id'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment