File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function users(): BelongsToMany
5656 * @return $this
5757 * @throws GuardDoesNotMatch
5858 */
59- public function givePermissionTo (...$ permissions ): Model
59+ public function givePermissionTo (...$ permissions ): self
6060 {
6161 $ permissions = collect ($ permissions )
6262 ->flatten ()
@@ -83,7 +83,7 @@ public function givePermissionTo(...$permissions): Model
8383 * @return $this
8484 * @throws GuardDoesNotMatch
8585 */
86- public function syncPermissions (...$ permissions ): Model
86+ public function syncPermissions (...$ permissions ): self
8787 {
8888 $ this ->permissions ()->sync ([]);
8989
@@ -98,7 +98,7 @@ public function syncPermissions(...$permissions): Model
9898 * @return $this
9999 * @throws \Maklad\Permission\Exceptions\GuardDoesNotMatch
100100 */
101- public function revokePermissionTo (...$ permissions ): Model
101+ public function revokePermissionTo (...$ permissions ): self
102102 {
103103 collect ($ permissions )
104104 ->flatten ()
Original file line number Diff line number Diff line change @@ -104,9 +104,9 @@ public function removeRole(...$roles)
104104 *
105105 * @param array ...$roles
106106 *
107- * @return $this
107+ * @return array|Role|string
108108 */
109- public function syncRoles (...$ roles ): Model
109+ public function syncRoles (...$ roles )
110110 {
111111 $ this ->roles ()->sync ([]);
112112
You can’t perform that action at this time.
0 commit comments