Created
June 19, 2019 01:11
-
-
Save itsrachelfish/0ac5d7fafe000ff9f98b34572f1b2f83 to your computer and use it in GitHub Desktop.
Get all admin users
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
$users = User::whereHas('roles', function ($query) { | |
$query->where('role_id', '=', 1); | |
})->get(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment