PHP Trait Mpociot\Teamwork\Traits\TeamworkTeamTrait

Afficher le fichier Open project: mpociot/teamwork

Méthodes publiques

Méthode Description
hasUser ( Model $user ) : boolean Helper function to determine if a user is part of this team
invites ( ) : mixed One-to-Many relation with the invite model
owner ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany Has-One relation with the user model.
users ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany Many-to-Many relations with the user model.

Method Details

hasUser() public méthode

Helper function to determine if a user is part of this team
public hasUser ( Model $user ) : boolean
$user Illuminate\Database\Eloquent\Model
Résultat boolean

invites() public méthode

One-to-Many relation with the invite model
public invites ( ) : mixed
Résultat mixed

owner() public méthode

This indicates the owner of the team
public owner ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
Résultat Illuminate\Database\Eloquent\Relations\BelongsToMany

users() public méthode

Many-to-Many relations with the user model.
public users ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
Résultat Illuminate\Database\Eloquent\Relations\BelongsToMany