/** * Deletes a specific note in the database * * This method uses the note repository to delete a specific note in the * database. * * @since 1.0.0 * * @param Request $request The HTTP request with the ID of the note * @return int The HTTP status code */ public function destroy(Request $request) { return $this->notes->deleteNote($request->id); }