LMongo\Eloquent\Model::load PHP Method

load() public method

Eager load relations on the model.
public load ( array | string $relations ) : void
$relations array | string
return void
    public function load($relations)
    {
        if (is_string($relations)) {
            $relations = func_get_args();
        }
        $query = $this->newQuery()->with($relations);
        $query->eagerLoadRelations(array($this));
    }
Model