src/Foothing/Repository/Eloquent/EloquentRepository.php
protected function finalize($result) {
        $this->eagerLoad = [];
        $this->criteria->reset();
        $this->scope = null;
        return $result;
    }
protected function finalize($result) {
        $this->eagerLoad = [];
        $this->criteria->reset();
        $this->scope = null;
        return $result;
    }
protected function finalize ( $ result ) { $ this -> eagerLoad = [ ] ; $ this -> criteria -> reset ( ) ; $ this -> scope = null ; return $ result ; }
Utility method for flags reset. Always use this to return results.

@param $result
The result we want to return

@return mixed
Utility method for flags reset . Always use this to return results .