In your package, i can see that we have a single cached view for a model ?!
It could be great to pass different "versions of card model key" and generate several keys like :
App\Card/preview-1-1457710078
App\Card/full-1-1457710078
used in blade: @cache($card, ['preview']))
$item->getCacheKey('preview-version')
used in blade: @cache($card, ['full']))
$item->getCacheKey('full-version')
I'm working on your code to use it in my project, because in my case it's impossible to use different design for a same model for the moment.
In your package, i can see that we have a single cached view for a model ?!
It could be great to pass different "versions of card model key" and generate several keys like :
used in blade: @cache($card, ['preview']))
$item->getCacheKey('preview-version')used in blade: @cache($card, ['full']))
$item->getCacheKey('full-version')I'm working on your code to use it in my project, because in my case it's impossible to use different design for a same model for the moment.