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