LMongo\Eloquent\Model::with PHP Метод

with() публичный статический Метод

Being querying a model with eager loading.
public static with ( array | string $relations ) : Builder
$relations array | string
Результат Builder
    public static function with($relations)
    {
        if (is_string($relations)) {
            $relations = func_get_args();
        }
        $instance = new static();
        return $instance->newQuery()->with($relations);
    }
Model