Inheritance diagram for FollowersTrait:The resource has followers that can only be changed via POST.
Public Methods | |
| $this | addFollower (User $user) |
| $this | addFollowers (array $users) |
| magic User[] | getFollowers () |
| magic bool | hasFollowers () |
| $this | removeFollower (User $user) |
| $this | removeFollowers (array $users) |
| magic User[] | selectFollowers (callable $filter) |
fn( User $user ): bool More... | |
Additional Inherited Members | |
Protected Methods inherited from PostMutatorTrait | |
| $this | _addWithPost (string $addPath, array $postData, string $field, array $diff) |
For existing entities this adds references to other entities via the given POST path. More... | |
| $this | _removeWithPost (string $rmPath, array $postData, string $field, array|Closure $diff) |
For existing entities this removes references to other entities via the given POST path. More... | |
| magic bool hasFollowers | ( | ) |