Illuminate\Database\Eloquent\Model::finishSave PHP Method

finishSave() protected method

Finish processing on a successful save operation.
protected finishSave ( array $options ) : void
$options array
return void
    protected function finishSave(array $options)
    {
        $this->fireModelEvent('saved', false);
        $this->syncOriginal();
        if (Arr::get($options, 'touch', true)) {
            $this->touchOwners();
        }
    }

Usage Example

Example #1
0
 /**
  * {@inheritDoc}
  */
 protected function finishSave(array $options)
 {
     parent::finishSave($options);
     EntityTrait::clearAttributesCache();
 }
Model