title: Image doesn't store in Laravel 6
body: <p>I've tried to implement <code>image upload</code> in Laravel using Vue.js? However, I didn't know why the image doesn't save to the database. I'm not sure, the real problem comes from within my <code>Vue.js</code> or <code>My Controller</code>. I still, can't figure out how.</p>
  
  <p><strong>CustomerController</strong></p>
  
  <p>
  
  <pre><code>public function store(Request $request)
  {
      $data = $request-&gt;validate([
          'name' =&gt; 'required',
          'email' =&gt; 'required',
          'phone' =&gt; 'required',
          'company_name' =&gt; 'required',
      ]);
  
      $customer = Customer::create($data);
  
      if ($request-&gt;hasFile('image')) {
          $image = $request-&gt;get('image');
          $imageName = time().'.'.$request-&gt;image-&gt;getClientOriginalExtension();
          $request-&gt;image-&gt;move(public_path('images'), $imageName);
      }
      // dd($customer);
  
      return response()-&gt;json(['sucessfully created image']);
  }
  </code></pre>