'onlyAdmin', 'namespace' => 'Templates'], function () { Route::get('templates/overview/path/{templatePath}', 'TemplateOverview@getPath') ->name('templates.overview'); Route::post('templates/copy', 'CopyTemplate@createCopy') ->name('templates.postCopy'); Route::get('templates/edit/{template}', 'EditTemplate@getEdit') ->name('templates.edit'); Route::post('templates/edit/{template}', 'EditTemplate@postEdit') ->name('templates.postEdit'); });