Illuminate\Database\Eloquent\Model::getKeyForSaveQuery PHP 메소드

getKeyForSaveQuery() 보호된 메소드

Get the primary key value for a save query.
protected getKeyForSaveQuery ( ) : mixed
리턴 mixed
    protected function getKeyForSaveQuery()
    {
        if (isset($this->original[$this->getKeyName()])) {
            return $this->original[$this->getKeyName()];
        }
        return $this->getAttribute($this->getKeyName());
    }
Model