public function findOrFail($id)
    {
        return $this->cache->rememberForever('extension.' . $id, function () use ($id){
            return $this->repository->findOrFail($id);
        });
    }
public function findOrFail($id)
    {
        return $this->cache->rememberForever('extension.' . $id, function () use ($id){
            return $this->repository->findOrFail($id);
        });
    }
public function findOrFail ( $ id ) { return $ this -> cache -> rememberForever ( 'extension.' . $ id , function ( ) use ( $ id ) { return $ this -> repository -> findOrFail ( $ id ) ; } ) ; }
Find or fail an extension.

@param int $id
@return \Yajra\CMS\Entities\Extension
Find or fail an extension .