Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ->orWhere(function($query){
- $parentInfo = Input::get("parent-info");
- if ( $parentInfo == "parent-phone" ) {
- $query->where('parents.parent_phone');
- }
- if ( $parentInfo == "parent-email" ) {
- $query->where('parents.parent_email');
- }
- if ( $parentInfo == "parent-address" ) {
- $query->where('parents.parent_address');
- }
- if ( $parentInfo == "parent-office-address" ) {
- $query->where('parents.parent_office_address');
- }
- }
Add Comment
Please, Sign In to add comment