VY
Может в этом дело?
Size: a a a
VY
MD
VY
D
VS
VS
VS
VS
D
K
public function index($slug){
$category = Category::select('id','title', 'slug')
->where('slug', $slug)
->first();
if (is_null($category)) {
abort(404);
}
$posts = Post::select('id', 'title', 'counter','category_id', 'created_at')
->where('category_id', $category->id)
->orderBy('created_at', 'DESC')
->paginate(7);
return view('category.index', compact('posts', 'category'));
}
K
DF
IV
K
K
K
IV
IV
K
IV