File "SubmissionLogController.php"
Full Path: /home/romayxjt/public_html/wp-content/plugins/fluentform/app/Http/Controllers/SubmissionLogController.php
File size: 846 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace FluentForm\App\Http\Controllers;
use Exception;
use FluentForm\App\Services\Logger\Logger;
class SubmissionLogController extends Controller
{
public function get(Logger $logger, $submissionId)
{
try {
return $this->sendSuccess(
$logger->getSubmissionLogs($submissionId, $this->request->all())
);
} catch (Exception $e) {
return $this->sendError([
'message' => $e->getMessage(),
]);
}
}
public function remove(Logger $logger)
{
try {
return $this->sendSuccess(
$logger->remove($this->request->all())
);
} catch (Exception $e) {
return $this->sendError([
'message' => $e->getMessage(),
]);
}
}
}