Add dedicated named route

This commit is contained in:
Marcus Moore 2025-03-04 16:07:35 -08:00
parent 1e4daf0348
commit f01ff1f1d7
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -37,7 +37,7 @@
<form
method="POST"
action="{{ request()->routeIs('report-templates.edit') ? route('report-templates.update', $template) : route('reports/custom') }}"
action="{{ request()->routeIs('report-templates.edit') ? route('report-templates.update', $template) : route('reports.post-custom') }}"
accept-charset="UTF-8"
class="form-horizontal"
id="custom-report-form"

View file

@ -532,7 +532,8 @@ Route::group(['prefix' => 'reports', 'middleware' => ['auth']], function () {
$trail->parent('home')
->push(trans('general.custom_report'), route('reports/custom')));
Route::post('custom', [ReportsController::class, 'postCustom']);
Route::post('custom', [ReportsController::class, 'postCustom'])
->name('reports.post-custom');
Route::prefix('templates')