I am new to Laravel. All I'm trying to do is the following:
I have some fields in my form, such as TITLE, DESCRIPTION .
FieldTITLE is unique in the database.
This is what I did to update my values.
$product = Product::find($id);
$product->title = $request->title;
$product->description = $request->description;
$product->save();
But this will give an error (this value already exists), since my TITLE field is unique.
All I want is updating my TITLE only if the TITLE value is changed, otherwise update the same value, but update the other fields. thank