Mpociot\Teamwork\Traits\UsedByTeams::teamGuard PHP 메소드

teamGuard() 보호된 정적인 메소드

protected static teamGuard ( )
    protected static function teamGuard()
    {
        if (auth()->guest() || !auth()->user()->currentTeam) {
            throw new Exception('No authenticated user with selected team present.');
        }
    }