Skip to content

Instantly share code, notes, and snippets.

@duikb00t
Created April 1, 2014 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duikb00t/9915046 to your computer and use it in GitHub Desktop.
Save duikb00t/9915046 to your computer and use it in GitHub Desktop.
shorterwayhowto
$users = User::select(array('id','role','first_name','last_name'))
->where('role','like','manager')
->get(array('first_name','last_name'));
$telemarketeers = User::select(array('id','role','first_name','last_name'))
->where('role','like','telemarketeer')
->get(array('first_name','last_name'));
$clients = User::select(array('id','role','first_name','last_name'))
->where('role','like','client')
->get(array('first_name','last_name'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment