php-api-wrapper icon indicating copy to clipboard operation
php-api-wrapper copied to clipboard

Example update

Open jorbascrumps opened this issue 3 years ago • 0 comments

I'm not sure how updating is suppose to work. Normally to update a model with Eloquent you would do something like:

Customer::where('id', 1)->update([
    // ...
]);

However, this doesn't appear to be working and results in the following error:

{
    "message": "Call to a member function update() on array",
    "exception": "Exception",
    "file": "/vendor/cristal/php-api-wrapper/src/Builder.php",
    "line": 241
}

Is there a correct way to update or is this a bug?

jorbascrumps avatar May 11 '22 21:05 jorbascrumps