src/Stores/DatabaseStore.php
protected function prepareInsertData(array $data)
    {
        $dbData       = [];
        $extraColumns = $this->extraColumns ? $this->extraColumns : [];

        foreach ($data as $key => $value) {
            $dbData[] = array_merge($extraColumns, [
                $this->keyColumn   => $key,
                $this->valueColumn => $value,
            ]);
        }

        return $dbData;
    }
protected function prepareInsertData(array $data)
    {
        $dbData       = [];
        $extraColumns = $this->extraColumns ? $this->extraColumns : [];

        foreach ($data as $key => $value) {
            $dbData[] = array_merge($extraColumns, [
                $this->keyColumn   => $key,
                $this->valueColumn => $value,
            ]);
        }

        return $dbData;
    }
protected function prepareInsertData ( array $ data ) { $ dbData = [ ] ; $ extraColumns = $ this -> extraColumns ? $ this -> extraColumns : [ ] ; foreach ( $ data as $ key => $ value ) { $ dbData [ ] = array_merge ( $ extraColumns , [ $ this -> keyColumn => $ key , $ this -> valueColumn => $ value , ] ) ; } return $ dbData ; }
Transforms settings data into an array ready to be inserted into the database.
Call array_dot on a multidimensional array before passing it into this method!

@param  array  $data

@return array
Transforms settings data into an array ready to be inserted into the database . Call array_dot on a multidimensional array before passing it into this method!