Laravel cache with route model binding? – SEO
I'm adding caching to my Laravel app routes. I have a function that renders a blog post on my site: public function show(Post $post) { SEO::setTitle($post->title); SEO::setDescription($post->subtitle); SEO::setCanonical('https://employbl.com/blog/' . $post->slug); SEO::opengraph()->setUrl('https://employbl.com/blog/' . $post->slug); SEO::opengraph()->addProperty('type', 'article'); SEO::opengraph()->addImage($post->featured_image); SEO::twitter()->setSite('@Employbl_Jobs'); $markdown = Markdown::parse($post->body);…