title: laravel updating editing database record - getting error when submitting the form
body: <p>I am using this code to edit database record :</p>
  
  <pre><code>public function service_edit($id)
  {
      $service = Service::find($id);
      return view('Super_Admin/service/.service_edit')-&gt;with('service', $service);
  }
  
  public function service_update(Request $request, $id)
  {
      $service = Service::find($id);
      $input['title_name'] = strtoupper ($request['title_name']);
      $input['link'] = strtoupper ($request['link']);
      $input['note'] = strtoupper ($request['note']);
      $input['image'] = time().'.'.$request-&gt;
  
      image-&gt;getClientOriginalExtension();
      $folder1 = public_path('WEBSITE-FILE/SERVICE/1');
      $path1 = $folder1 . $input['image']; // path 1
      $request-&gt;image-&gt;move($folder1, $input['image']);
      $path2 = public_path('WEBSITE-FILE/SERVICE/2').$input['image'];// path 2
      $path3 = public_path('WEBSITE-FILE/SERVICE/3'). $input['image']; // path 3
      $path4 = public_path('WEBSITE-FILE/SERVICE/4'). $input['image']; // path 4
  
      \File::copy($path1, $path2);
      \File::copy($path1, $path3);
      \File::copy($path1, $path4);
  
      $service-&gt;save();
  
      return back()-&gt;with('success','UPDATED SUCCESSFULLY .');
  }
  </code></pre>
  
  <p>I am facing this error when I submit the form</p>
  
  <blockquote>
    <p>"Call to a member function save() on array"</p>
  </blockquote>