(Controller::isUserSystemEnabled()) ? 'user' : 'any', 'requestData' => [] ]; } public function handler() { $topics = Topic::getAll(); $topicsArray = []; foreach($topics as $topic) { $topicsArray[] = $topic->toArray(); } Response::respondSuccess($topicsArray); } }