public function findOrFail($id)
    {
        if ($this->refresh) {
            $this->forget($id);
        }
        return $this->cache->remember($this->keyPrefix . $id, $this->minutesToCache, function () use ($id) {
            return $this->decorated->findOrFail($id);
        });
    }
public function findOrFail($id)
    {
        if ($this->refresh) {
            $this->forget($id);
        }
        return $this->cache->remember($this->keyPrefix . $id, $this->minutesToCache, function () use ($id) {
            return $this->decorated->findOrFail($id);
        });
    }
public function findOrFail ( $ id ) { if ( $ this -> refresh ) { $ this -> forget ( $ id ) ; } return $ this -> cache -> remember ( $ this -> keyPrefix . $ id , $ this -> minutesToCache , function ( ) use ( $ id ) { return $ this -> decorated -> findOrFail ( $ id ) ; } ) ; }
finds a model by id, fails with ModelNotFoundException when not found

@param int $id
@return Model|\Serializable
finds a model by id fails with ModelNotFoundException when not found