Level 23
Ok i was being stupid.. i was using request->only() which returns an array!
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Ok so I am doing something like:
$this->user->update(['id' => $userId], ['expires' => $date]);
if i replace 'expires' => $date with another column for example (is_deactivated => 1) it all works fine..
Error I am getting is:
ErrorException in helpers.php line 686:
preg_replace(): Parameter mismatch, pattern is a string while replacement is an array
Ok i was being stupid.. i was using request->only() which returns an array!
Please or to participate in this conversation.