Rename parameter in redirect when validation fails while trying to complete an import
MODIFY
app/Http/Controllers/ImportController.php
app/Http/Controllers/ImportController.php
@@ -147,7 +147,7 @@ class ImportController extends Controller
if ($errors) {
$request->flash();
- return redirect()->route('imports.complete', ['id' => $import->id])->withErrors($errors);
+ return redirect()->route('imports.complete', ['import' => $import->id])->withErrors($errors);
}
foreach ($request->input('rows') as $row) {

Rename parameter in redirect when validation fails while trying to complete an import