hasFile('upload')) { $file = request()->file('upload'); $path = 'uploads/ckeditor'; $imagePath = uploadImage($file, $path); $CKEditorFuncNum = request()->input('CKEditorFuncNum'); $url = asset('storage/' . $imagePath); $response = ""; echo $response; } } }