Example #1
0
 /**
  * Handle update process
  *
  * @param $postData
  */
 protected function processUpdate($postData)
 {
     $collection = collect($postData);
     $keys = $this->getTablePrimaryKeys();
     $update = $collection->only($this->getTableColumns())->except($keys)->toArray();
     $clause = $collection->only($keys)->toArray();
     Queries::update($this->getTable(), $update, $clause);
 }