'staff_2', 'requestData' => [ 'name' => [ 'validation' => DataValidator::notBlank()->length(5, 100), 'error' => ERRORS::INVALID_TITLE ], 'content' => [ 'validation' => DataValidator::content(), 'error' => ERRORS::INVALID_CONTENT ], 'language' => [ 'validation' => DataValidator::validLanguage(), 'error' => ERRORS::INVALID_LANGUAGE ] ] ]; } public function handler() { $customResponse = new CustomResponse(); $customResponse->setProperties([ 'name' => Controller::request('name'), 'content' => Controller::request('content', true), 'language' => Controller::request('language') ]); $customResponse->store(); Log::createLog('ADD_CUSTOM_RESPONSE', null); Response::respondSuccess(); } }