Skip to content

Instantly share code, notes, and snippets.

@azhar25git
Forked from sirawitpra/CustomerAddress.php
Created January 23, 2019 05:05
Show Gist options
  • Save azhar25git/f57087d6110de54c45f30af4cab9973d to your computer and use it in GitHub Desktop.
Save azhar25git/f57087d6110de54c45f30af4cab9973d to your computer and use it in GitHub Desktop.
<?php
class CustomerAddress extends Model {
protected function setKeysForSaveQuery(Builder $query)
{
$query
->where('Customer_No', '=', $this->getAttribute('Customer_No'))
->where('Address_Name', '=', $this->getAttribute('Address_Name'));
return $query;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment