All kind time of day!
The real question is this:
There is a table in DB which stores the values of the network adapters, therefore the table is not created the field "id" as key field was assigned to the field "mac" because the physical addresses are unique to itself.
To save the data on the network adapter after editing, I wrote the following function:
public function saveNic (Request $request)
$data = $request->all();
$host = $data['host'];
$tmp= Networkcard::select(['mac', 'name', 'network', 'wol'])->where('mac',$data['mac'])->get();
As you can see in the code, the problem with the sample from the base I walked in the following way (if it can be improved, please tell me how).
But when you save and call save() method Laravel generates a query in which the key field considers the id field. Therefore, it is reasonable tells me error.
Please tell me how can I change the query tools Laravel to save data, or maybe to add some parameters to the method save(), what would the query not to look for the mac line on the field, not the id field?