public function save($model)
    {
        if ($model instanceof Collection || is_array($model)) {
            throw new InvalidArgumentException('Parameter $model must be an instance of \Illuminate\Database\Eloquent\Model');
        }

        $this->validation()->validate('save', $model->getAttributes());

        $this->beforeSaveModel($model);

        return $model->save();
    }