$category = \Author\PluginName\Models\Category::where('slug', $this->property('slug'))->first();
if (empty($category)){
return $this->controller->run('404');
}
$items = \Author\PluginName\Models\Item::where('category_id', $category->id)->paginate($this->property('items'));
$this->page['category'] = $category;
$this->page['items'] = $items;
}
+ хвала поиску по истории)