protected function saveOrTrashValue(Value $value): void
    {
        // In order to provide flexibility and let the values have their own
        // relationships, here we'll check if a value should be completely
        // saved with its relations or just save its own current state.
        if (! is_null($value) && ! $this->trashValue($value)) {
            if ($value->shouldPush()) {
                $value->push();
            } else {
                $value->save();
            }
        }
    }
protected function saveOrTrashValue(Value $value): void
    {
        // In order to provide flexibility and let the values have their own
        // relationships, here we'll check if a value should be completely
        // saved with its relations or just save its own current state.
        if (! is_null($value) && ! $this->trashValue($value)) {
            if ($value->shouldPush()) {
                $value->push();
            } else {
                $value->save();
            }
        }
    }
protected function saveOrTrashValue ( Value $ value ) : void { // In order to provide flexibility and let the values have their own // relationships, here we'll check if a value should be completely // saved with its relations or just save its own current state. if ( ! is_null ( $ value ) && ! $ this -> trashValue ( $ value ) ) { if ( $ value -> shouldPush ( ) ) { $ value -> push ( ) ; } else { $ value -> save ( ) ; } } }
Save or trash the given value according to it's content.

@param \Rinvex\Attributes\Models\Value $value

@return void
Save or trash the given value according to it s content .