There was an error while loading. Please reload this page.
This method updates data from registry by ID.
public function update(array $data, int $id): Model|bool;
$instance = $repository->update([ 'email' => 'joe.doe@gmail.com', ], 1); if ($instance === false) { echo 'User #1 not found'; } else { echo 'Data updated with new email ' . $instance->email; }
🡄 Insert a Row | Delete By IDs 🡆
Home