# fluentform/6.0.1/app/Http/Controllers/SubmissionNoteController.php

Fluent Forms – Customizable Contact Forms, Survey, Quiz, &amp; Conversational Form Builder, version 6.0.1. 36 lines.

- Page: https://pluginprobe.com/plugins/fluentform/6.0.1/code/app/Http/Controllers/SubmissionNoteController.php
- Raw: https://pluginprobe.com/plugins/fluentform/6.0.1/raw/app/Http/Controllers/SubmissionNoteController.php
- Modified: 2025-03-20T23:17:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluentform/6.0.1/code/app/Http/Controllers/SubmissionNoteController.php#L10-L20`.

```php
<?php

namespace FluentForm\App\Http\Controllers;

use Exception;
use FluentForm\App\Services\Submission\SubmissionService;

class SubmissionNoteController extends Controller
{
    public function get(SubmissionService $submissionService, $submissionId)
    {
        try {
            return $this->sendSuccess(
                $submissionService->getNotes($submissionId, $this->request->all())
            );
        } catch (Exception $exception) {
            return $this->sendError([
                'message' => $exception->getMessage(),
            ]);
        }
    }

    public function store(SubmissionService $submissionService, $submissionId)
    {
        try {
            return $this->sendSuccess(
                $submissionService->storeNote($submissionId, $this->request->all())
            );
        } catch (Exception $exception) {
            return $this->sendError([
                'message' => $exception->getMessage(),
            ]);
        }
    }
}

```
