public function load($relations)
    {
        $query = $this->newQuery()->with(
            is_string($relations) ? func_get_args() : $relations
        );

        $query->eagerLoadRelations([$this]);

        return $this;
    }
public function load($relations)
    {
        $query = $this->newQuery()->with(
            is_string($relations) ? func_get_args() : $relations
        );

        $query->eagerLoadRelations([$this]);

        return $this;
    }
public function load ( $ relations ) { $ query = $ this -> newQuery ( ) -> with ( is_string ( $ relations ) ? func_get_args ( ) : $ relations ) ; $ query -> eagerLoadRelations ( [ $ this ] ) ; return $ this ; }
Eager load relations on the model.

@param  array|string  $relations
@return $this
Eager load relations on the model .