private function _saveDropdownOptions($property, $request)
    {
        if (null !== $request->get('dropdown-options')) {
            $property->propertyDropdownOptions()->delete();

            foreach ($request->get('dropdown-options') as $key => $val) {
                if ($key == '__RANDOM_STRING__') {
                    continue;
                }

                $property->propertyDropdownOptions()->create($val);
            }
        }
    }
private function _saveDropdownOptions($property, $request)
    {
        if (null !== $request->get('dropdown-options')) {
            $property->propertyDropdownOptions()->delete();

            foreach ($request->get('dropdown-options') as $key => $val) {
                if ($key == '__RANDOM_STRING__') {
                    continue;
                }

                $property->propertyDropdownOptions()->create($val);
            }
        }
    }
private function _saveDropdownOptions ( $ property , $ request ) { if ( null !== $ request -> get ( 'dropdown-options' ) ) { $ property -> propertyDropdownOptions ( ) -> delete ( ) ; foreach ( $ request -> get ( 'dropdown-options' ) as $ key => $ val ) { if ( $ key == '__RANDOM_STRING__' ) { continue ; } $ property -> propertyDropdownOptions ( ) -> create ( $ val ) ; } } }
Save Property Dropdown Field options

@param \AvoRed\Framework\Models\Database\Property $proerty
@param \AvoRed\Ecommerce\Http\Request\PropertyRequest $request

@return void
Save Property Dropdown Field options