updated role middleware

This commit is contained in:
2020-03-06 20:57:08 -06:00
parent 7368c137cc
commit a461e62bf8

View File

@@ -24,11 +24,11 @@ class RequireRole
foreach($roles as $r) { foreach($roles as $r) {
$temp[$r->role] = $r->rank; $temp[$r->role] = $r->rank;
dd($temp);
array_push($temp, $ranking); array_push($temp, $ranking);
} }
dd($roles); dd($ranking);
$check = UserRole::where('character_id', auth()->user()->character_id)->get(['role']); $check = UserRole::where('character_id', auth()->user()->character_id)->get(['role']);