PHP Трейт Mpociot\Teamwork\Traits\TeamworkTeamTrait

Показать файл Открыть проект

Открытые методы

Метод Описание
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