Closed salimedia closed 4 years ago
Comments for the model are grabbed from model comments()
relationship. You could on your controller method where you obtain the model, cache $post->comments
for some reason. Don't know what is the use case for this, but it should be doable.
Hi After using this package, How can i use Laravel Cache to store comments? like that:
because in blade we use just this code:
@comments(['model' => $post,'approved' => true])
Thank you very much