diff --git a/src/Http/Controllers/SaveFileContentController.php b/src/Http/Controllers/SaveFileContentController.php index 7f61d32..3192eab 100644 --- a/src/Http/Controllers/SaveFileContentController.php +++ b/src/Http/Controllers/SaveFileContentController.php @@ -17,7 +17,7 @@ public function __invoke(FileContentsRequest $request) $this->ensureFileExistInProject($filePath); - file_put_contents($filePath, $request->get('value')); + file_put_contents($filePath, rtrim($request->get('value')).PHP_EOL); return ['saved' => true]; }