'staff_2', 'requestData' => [ 'topicId' => [ 'validation' => DataValidator::dataStoreId('topic'), 'error' => ERRORS::INVALID_TOPIC ] ] ]; } public function handler() { $topic = Topic::getDataStore(Controller::request('topicId')); Log::createLog('DELETE_TOPIC', $topic->name); $topic->delete(); Response::respondSuccess(); } }