From cfda506b856932dd66cada2a1e734ba8a57a23f3 Mon Sep 17 00:00:00 2001 From: Hamid Musavi Date: Sun, 28 Jul 2024 11:51:42 +0330 Subject: [PATCH] Update Permission.php Fix Users on Permission Model --- src/Models/Permission.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/Permission.php b/src/Models/Permission.php index 1afd129..01c754d 100644 --- a/src/Models/Permission.php +++ b/src/Models/Permission.php @@ -30,6 +30,6 @@ public function roles() public function users() { - return $this->belongsToMany(User::class, 'role_user'); + return $this->belongsToMany(User::class, 'permission_user'); } }