title: Laravel - Delete data record from Database
body: <p>I want to delete record Photo and Photo_list from Database but give me error</p>
  
  <p><img src="https://i.stack.imgur.com/hFZzL.png" alt="This is my database Product"></p>
  
  <p>This is my Code in Controller</p>
  
  <pre><code>public function deletephoto($id)
  {
  
      $product = $this-&gt;productRepository-&gt;findWithoutFail($id);
      Product::select('photo','photo_list')-&gt;delete($product-&gt;id);
  
      return redirect(route('stores.index'));
  
  }
  </code></pre>