We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14e61c1 commit 60bd5f0Copy full SHA for 60bd5f0
src/Services/File.php
@@ -46,6 +46,13 @@ public function loadJson(string $filename)
46
47
public function store(string $path)
48
{
49
+ if ($this->isJson($path)) {
50
+ FileSupport::store(
51
+ $path,
52
+ json_encode($this->content, JSON_PRETTY_PRINT)
53
+ );
54
+ }
55
+
56
$content = Stub::replace(Stub::CONFIG_FILE, [
57
'{{slot}}' => $this->content,
58
]);
0 commit comments