src/Helper.php
public static function fetchTeam($team = null)
    {
        if (is_null($team) || !Config::get('laratrust.use_teams')) {
            return null;
        }

        return static::getIdFor($team, 'team');
    }
public static function fetchTeam($team = null)
    {
        if (is_null($team) || !Config::get('laratrust.use_teams')) {
            return null;
        }

        return static::getIdFor($team, 'team');
    }
public static function fetchTeam ( $ team = null ) { if ( is_null ( $ team ) || ! Config :: get ( 'laratrust.use_teams' ) ) { return null ; } return static :: getIdFor ( $ team , 'team' ) ; }
Fetch the team model from the name.

@param  mixed  $team
@return mixed
Fetch the team model from the name .