src/Foothing/Repository/Eloquent/EloquentRepository.php
public function setModel(\Illuminate\Database\Eloquent\Model $model) {
        $this->model = $model;
        if ($this->model instanceof ResourceInterface) {
            $this->enableAutoEagerLoading = true;
        }
    }
public function setModel(\Illuminate\Database\Eloquent\Model $model) {
        $this->model = $model;
        if ($this->model instanceof ResourceInterface) {
            $this->enableAutoEagerLoading = true;
        }
    }
public function setModel ( \ Illuminate \ Database \ Eloquent \ Model $ model ) { $ this -> model = $ model ; if ( $ this -> model instanceof ResourceInterface ) { $ this -> enableAutoEagerLoading = true ; } }
Set the repository model.
@param \Illuminate\Database\Eloquent\Model $model
Set the repository model .