A free open source IT asset/license management system
Add dedicated named route
Marcus Mooref01ff1f1d7cc
diff --git a/resources/views/reports/custom.blade.php b/resources/views/reports/custom.blade.phpindex 1688df47be..f89866ed21 100644--- a/resources/views/reports/custom.blade.php+++ b/resources/views/reports/custom.blade.php@@ -37,7 +37,7 @@<formmethod="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"diff --git a/routes/web.php b/routes/web.phpindex a3df05ac76..4d61eb7e82 100644--- a/routes/web.php+++ b/routes/web.php@@ -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')