why is it an issue?
Eloquent update method returns false if nothing is changed.
Hello! Since i've upgraded laravel from 5.2 to 5.3 I got this weird bug in only one route, Eloquent update method returns false if nothing is changed on update. If atleast one field is changed everything works fine. I have no clue why this is happening and how to fix it, as I've tried debugging it with xdebug and it returns nothing, no errors nothing at all.
This is code which is somehow bugged.
$forum->update([
'title' => $request->title,
'description' => $request->description,
'needs_approval' => $request->needs_approval,
'topic_reward' => $request->topic_reward,
'post_reward' => $request->post_reward,
]);
I've tried fill()->save(); forceFill()->save(); and even OOP way, nothing works. Maybe anyone have similar issue and know how to fix it? Thanks!
@ggwebdev Hi, this is already fixed, seems like it was laravel issue, as I updated my laravel to latest version and this issue disappeared.
Please or to participate in this conversation.