src/Settings/Settings.php
protected function createRecord($key, $value)
    {
        return $this->propertyBag()->save(
            new PropertyBag([
                'key'   => $key,
                'value' => $this->valueToJson($value),
            ])
        );
    }
protected function createRecord($key, $value)
    {
        return $this->propertyBag()->save(
            new PropertyBag([
                'key'   => $key,
                'value' => $this->valueToJson($value),
            ])
        );
    }
protected function createRecord ( $ key , $ value ) { return $ this -> propertyBag ( ) -> save ( new PropertyBag ( [ 'key' => $ key , 'value' => $ this -> valueToJson ( $ value ) , ] ) ) ; }
Create a new PropertyBag record.

@param string $key
@param mixed  $value

@return \LaravelPropertyBag\Settings\PropertyBag
Create a new PropertyBag record .