Метод |
Описание |
|
attachTeam ( mixed $team, array $pivotData = [] ) |
Alias to eloquent many-to-many relation's attach() method. |
|
attachTeams ( mixed $teams ) |
Attach multiple teams to a user |
|
currentTeam ( ) : Illuminate\Database\Eloquent\Relations\HasOne |
has-one relation with the current selected team model. |
|
detachTeam ( mixed $team ) |
Alias to eloquent many-to-many relation's detach() method. |
|
detachTeams ( mixed $teams ) |
Detach multiple teams from a user |
|
invites ( ) : mixed |
One-to-Many relation with the invite model |
|
isOwner ( ) : boolean |
Returns if the user owns a team |
|
isOwnerOfTeam ( mixed $team ) : boolean |
Returns if the user owns the given team |
|
switchTeam ( object | array | integer $team ) |
Switch the current team of the user |
|
teams ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany |
Many-to-Many relations with the user model. |
|