diff --git a/app/Models/PermissionRole.php b/app/Models/PermissionRole.php new file mode 100644 index 0000000..78fe298 --- /dev/null +++ b/app/Models/PermissionRole.php @@ -0,0 +1,11 @@ +using(RoleUser::class); } + + /** + * The permissions that belong to the role. + * + * @return BelongsToMany + */ + public function permissions(): BelongsToMany + { + return parent::permissions()->using(PermissionRole::class); + } }