fix: specify role_has_permissions table in Role model permissions relationship

This commit is contained in:
Lizandro Guarnizo
2026-06-09 17:30:47 -05:00
parent c59f760730
commit 095307a456
+1 -1
View File
@@ -40,6 +40,6 @@ class Role extends SpatieRole
}
public function permissions(): BelongsToMany
{
return $this->belongsToMany(Permission::class);
return $this->belongsToMany(Permission::class, 'role_has_permissions');
}
}