Last active
March 29, 2018 08:45
-
-
Save sirawitpra/c4eb86edddd89c64a175e1e6f771266e 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 Resource extends Model { | |
protected function setKeysForSaveQuery(Builder $query) | |
{ | |
$query | |
->where('pk_1', '=', $this->getAttribute('pk_1')) | |
->where('pk_2', '=', $this->getAttribute('pk_2')); | |
return $query; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment