public function searchFuckingSlug(string $slug)
{
$category = Category::where('slug', $slug)->first();
if ($category) {
return $this->category();
}
$post = Post::where('slug', $slug)->firstOrFail();
return $this->post();
}
private function category(){}
private function post(){}