Open axelzuzek opened 5 years ago
I had the same problem, I solved it provisionally by adding in SaveFileContentController.php and FileContentsController.php this line:
abort_unless($file, Response::HTTP_UNPROCESSABLE_ENTITY);
$file = str_replace(base_path(), '', $file); // new line
$filePath = base_path($file);```
Hm there seems to be another problem: $request->get('value') only contains the first 30 lines of the file, the rest is cut.
Same problem, ignition-code-editor/file-contents not Found
@nimbomx your solution is magically.
@nimbomx +1
Saving a change results in a
in Facade\CodeEditor\Http\Controllers\SaveFileContentController:
example under windows echo $file; => C:\dev\myApp\app\Http\Controllers\Frontend\MainController.php
echo $filePath; => C:\dev\myApp\C:\dev\myApp\app\Http\Controllers\Frontend\MainController.php
is this a configuration problem (in my setup) or a bug?