Mpociot\Teamwork\Traits\UserHasTeams::currentTeam PHP 메소드

currentTeam() 공개 메소드

has-one relation with the current selected team model.
public currentTeam ( ) : Illuminate\Database\Eloquent\Relations\HasOne
리턴 Illuminate\Database\Eloquent\Relations\HasOne
    public function currentTeam()
    {
        return $this->hasOne(Config::get('teamwork.team_model'), 'id', 'current_team_id');
    }