adds validation to imports

This commit is contained in:
hackerESQ
2024-08-29 21:39:59 -05:00
parent fc4f44ff05
commit 62f3ca6ef1
6 changed files with 68 additions and 12 deletions
@@ -20,7 +20,14 @@ new class extends Component {
$this->validate();
$import = (new BackupImport)->import($this->file);
try {
$import = (new BackupImport)->import($this->file);
} catch (\Throwable $e) {
dd($e);
return $this->error($e->getMessage());
}
$this->success(__('Successfully imported!'));