I am trying to evaluate an array of roles for an auth user. 100 and 102 are the role values I want to check. If the Auth user has one of these then return true
. Is this possible? Here is my code so far:
if (Auth::user()->role_id == ([100, 102]) {
//process code here. A lot of code.
}
I don't wish to repeat and check one at a time as the processing code is a lot and will make file lengthy.