Blog::published()->with(['author', 'category'])->latest('published_at')->paginate(12)]); } public function show(string $slug): View { return view('blog::public.show', ['record' => Blog::published()->with(['author', 'category', 'tags'])->where('slug', $slug)->firstOrFail()]); } }