debugging
This commit is contained in:
@@ -31,6 +31,7 @@ class AuthServiceProvider extends ServiceProvider
|
||||
|
||||
$gate->define('isAdmin', function($user) {
|
||||
$check = DB::table('user_roles')->where('character_id', auth()->user()->character_id)->get(['role']);
|
||||
dd($check);
|
||||
if($check == 'Admin') {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user