orderByDesc('published_at') ->paginate(12) ->withQueryString(); return view('web.blog.index', [ 'posts' => $posts, 'page_title' => 'Blog — Skinbase', 'page_meta_description' => 'News, tutorials and community stories from the Skinbase team.', 'page_canonical' => url('/blog'), 'page_robots' => 'index,follow', 'breadcrumbs' => collect([ (object) ['name' => 'Blog', 'url' => '/blog'], ]), ]); } public function show(string $slug): View { $post = BlogPost::published()->where('slug', $slug)->firstOrFail(); return view('web.blog.show', [ 'post' => $post, 'page_title' => ($post->meta_title ?: $post->title) . ' — Skinbase Blog', 'page_meta_description' => $post->meta_description ?: $post->excerpt ?: '', 'page_canonical' => $post->url, 'page_robots' => 'index,follow', 'breadcrumbs' => collect([ (object) ['name' => 'Blog', 'url' => '/blog'], (object) ['name' => $post->title, 'url' => $post->url], ]), ]); } }