Skip to content

Add `update` method on Client for Resources

Samuel Ryan requested to merge resource-updates into master

A Resource can be updated by passing it in to the client's update method:

$notification->update([
    'dismissed-at' => '2018-01-01 00:00:00',
]);

$notification = $client->update($notification);

The service currently doesn't support notification updates so this merge request is dependent upon confirming behaviour first -- although the current code is spec compliant so should be mergeable without changes.

Edited by Samuel Ryan

Merge request reports