Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. class Options extends Model {
  2. public static function getOption($option, $field = ""){
  3. if(!empty($field)){
  4. $getOption = Option::where('option', $option)->get()->pluck($field)->toArray();
  5. }else{
  6. $getOption = Option::where('option', $option)->get()->toArray();
  7. }
  8. return $getOption;
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement