@@documentation@@ public function destroy(@@requestClass@@ $request, $@@modelNameParam@@) { $@@modelNameParam@@ = @@modelName@@::findOrFail($@@modelNameParam@@); if ($@@modelNameParam@@->delete()) { return $this->response->array(['status' => 200, 'message' => '@@modelName@@ successfully deleted']); } else { return $this->response->errorInternal('Error occurred while deleting @@modelName@@'); } }