Created
April 2, 2019 06:19
-
-
Save adbrsln/cee7835cf16c7880dc4a8987d1d03667 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
$listOfUsers = User::whereHas('roles', function ($query) use($subuser) { | |
$query->where('name', 'like', $subuser); | |
}) | |
->whereHas('profile', function ($query) use($statesid) { | |
$query->where('state_id', '=',$statesid); | |
}) | |
->whereNotIn('id', $val)->get(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment