Hello,
I have a table with the following fields: KEY, VALUE , ALIAS, CLIENT_ID
.
In a given system process I need to update the Key and Value.
To update the append a record I have no problems, the problem is that when I need to change two KEYS and two VALUES of a client ID I am using the update function of laravel / repositories, so the code looks like this:
public function update(Request $request, $id)
{
$this->client->update($request->all(), $id);
}
The problem is that with this method if I have 2 values and 2 keys, it overlaps the first so what I get is just
request = [ key => 'segundo valor do form', value => 'segundo valor do form'];
I need the 2 keys and the 2 values to come. Can someone help?