public function find($id)
    {
        if ($this->refresh) {
            $this->forget($id);
        }
        return $this->cache->remember($this->keyPrefix . $id . implode('-', $this->with), $this->minutesToCache,
            function () use ($id) {
                return $this->decorated->find($id);
            });
    }
public function find($id)
    {
        if ($this->refresh) {
            $this->forget($id);
        }
        return $this->cache->remember($this->keyPrefix . $id . implode('-', $this->with), $this->minutesToCache,
            function () use ($id) {
                return $this->decorated->find($id);
            });
    }
public function find ( $ id ) { if ( $ this -> refresh ) { $ this -> forget ( $ id ) ; } return $ this -> cache -> remember ( $ this -> keyPrefix . $ id . implode ( '-' , $ this -> with ) , $ this -> minutesToCache , function ( ) use ( $ id ) { return $ this -> decorated -> find ( $ id ) ; } ) ; }
finds a model by id

@param int $id
@return Model|\Serializable
finds a model by id