Created
March 29, 2018 08:46
-
-
Save sirawitpra/bc73fa89a59cd7fddea18c7fa1bf49d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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