PHP 트레잇 Mpociot\Teamwork\Traits\TeamworkTeamTrait

파일 보기 프로젝트 열기: mpociot/teamwork

공개 메소드들

메소드 설명
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.

메소드 상세

hasUser() 공개 메소드

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

invites() 공개 메소드

One-to-Many relation with the invite model
public invites ( ) : mixed
리턴 mixed

owner() 공개 메소드

This indicates the owner of the team
public owner ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
리턴 Illuminate\Database\Eloquent\Relations\BelongsToMany

users() 공개 메소드

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