#I want to update product but it is not working and not even through error

5 messages · Page 1 of 1 (latest)

unreal gust
#

Given the code example there's a few things I see:

  1. Your field name value starts with a capital letter. It should match what is in the database.
  2. Some of those name values have additional spaces at the end - this means that they are not matched with a field in database.

Also, your database fields should be lowercase and not Capitalcase. hope that helps

Edit: You can actually use dd($request->all()); in your update method and see what the request has inside

vale bobcat
unreal gust
#

I'm pretty sure that $products->alert_stock is not the same as name="alert_stock " - see the space after the _stock 🙂

#

But I might be wrong. In that case, please add the DD output here

vale bobcat