We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06f23e7 commit e2da826Copy full SHA for e2da826
src/Utils/Model.php
@@ -70,7 +70,7 @@ public function delete()
70
{
71
return $this->request->handleWithExceptions( function () {
72
73
- return $this->request->client->delete( "{$this->entity}/{$this->{$this->primaryKey}}" );
+ return $this->request->client->delete( "{$this->entity}/" . urlencode( $this->{$this->primaryKey} ) );
74
} );
75
}
76
@@ -82,7 +82,7 @@ public function update( $data = [] )
82
83
return $this->request->handleWithExceptions( function () use ( $data ) {
84
85
- $response = $this->request->client->put( "{$this->entity}/{$this->{$this->primaryKey}}", [
+ $response = $this->request->client->put( "{$this->entity}/" . urlencode( $this->{$this->primaryKey} ), [
86
'json' => $data,
87
] );
88
0 commit comments