Skip to content

Commit 3774f66

Browse files
committed
Move status.json file #patch
1 parent c4280cc commit 3774f66

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

changelog/next.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- **Improvement**: Move status.json file out of package and into storage

src/Services/JsonService.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ class JsonService
1111

1212
public function __construct()
1313
{
14-
$this->file = config('adminui-installer.root') . '/resources/status.json';
14+
$oldPath = config('adminui-installer.root') . '/resources/status.json';
15+
$path = storage_path('app/adminui-installer/status.json');
16+
if (file_exists($oldPath)) {
17+
Storage::move($oldPath, $path);
18+
}
19+
$this->file = $path;
1520
$this->checkStatusFile();
1621
}
1722

0 commit comments

Comments
 (0)