Sindbad~EG File Manager

Current Path : /proc/2302468/cwd/plugins/fluentform/app/Http/Controllers/
Upload File :
Current File : //proc/2302468/cwd/plugins/fluentform/app/Http/Controllers/SubmissionNoteController.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(),
            ]);
        }
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists