Samson Mutunga 7 miesięcy temu
rodzic
commit
751155f876
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Http/Middleware/EnsureAdminRole.php

+ 1 - 1
app/Http/Middleware/EnsureAdminRole.php

@@ -18,7 +18,7 @@ class EnsureAdminRole
         if (!User::isLoggedIn($sessionKey)) return redirect(route('admin.dashboard'));
         $performer = AppSession::where('session_key', $sessionKey)->where('is_active', true)->first();
         if(!$performer->user->is_super_admin){
-            dd('You are not an admin', $performer->user);
+            dd('You are not an admin');
         }
 
         return $next($request);