public function getConversationsIn($category) { if (is_null($category)) { return []; } $rows = $this->database->table('conversations')->where('category_slug', $category->slug)->get(); return $rows; }