public function save_file(Request $request)
    {
        $filepath = $request->input('filepath');
        $filedata = $request->input('filedata');
        $data = file_put_contents(base_path($filepath), $filedata);
        return response()->json(['success' => true]);
    }
public function save_file(Request $request)
    {
        $filepath = $request->input('filepath');
        $filedata = $request->input('filedata');
        $data = file_put_contents(base_path($filepath), $filedata);
        return response()->json(['success' => true]);
    }
public function save_file ( Request $ request ) { $ filepath = $ request -> input ( 'filepath' ) ; $ filedata = $ request -> input ( 'filedata' ) ; $ data = file_put_contents ( base_path ( $ filepath ) , $ filedata ) ; return response ( ) -> json ( [ 'success' => true ] ) ; }
Save file content

@return \Illuminate\Http\Response
Save file content