Skip to content

Commit

Permalink
Pretty print stored JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhamp committed Apr 27, 2022
1 parent 9a9a1fc commit 21e5f63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Http/Controllers/ImportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ public function storeConfig(NovaRequest $request)
'mappings' => $request->input('mappings'),
'values' => $request->input('values'),
],
)
),
JSON_PRETTY_PRINT
);

$path = $this->getConfigFilePath($file);
Expand Down Expand Up @@ -171,7 +172,7 @@ public function import(NovaRequest $request)
'imported' => $total_rows - $failures->count() - $errors->count(),
'failures' => $failures,
'errors' => $errors,
]));
], JSON_PRETTY_PRINT));

return response()->json(['review' => "/csv-import/review/{$file}"]);
}
Expand Down

0 comments on commit 21e5f63

Please sign in to comment.