udemethegrtman

Untitled

Oct 14th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. ->orWhere(function($query){
  2.  
  3. $parentInfo = Input::get("parent-info");
  4.  
  5. if ( $parentInfo == "parent-phone" ) {
  6. $query->where('parents.parent_phone');
  7. }
  8.  
  9. if ( $parentInfo == "parent-email" ) {
  10. $query->where('parents.parent_email');
  11. }
  12.  
  13. if ( $parentInfo == "parent-address" ) {
  14. $query->where('parents.parent_address');
  15. }
  16.  
  17. if ( $parentInfo == "parent-office-address" ) {
  18. $query->where('parents.parent_office_address');
  19. }
  20. }
Add Comment
Please, Sign In to add comment