Why this code does not work?
public function update(Request $request, Category $category) { $path = null; if ($request->hasFile(\'image\')) {