src/Stores/DatabaseStore.php
private function getChanges(array $data)
    {
        $changes = [
            'inserted' => Arr::dot($data),
            'updated'  => [],
            'deleted'  => [],
        ];

        foreach ($this->newQuery()->pluck($this->keyColumn) as $key) {
            if (Arr::has($changes['inserted'], $key))
                $changes['updated'][$key] = $changes['inserted'][$key];
            else
                $changes['deleted'][] = $key;

            Arr::forget($changes['inserted'], $key);
        }

        return $changes;
    }
private function getChanges(array $data)
    {
        $changes = [
            'inserted' => Arr::dot($data),
            'updated'  => [],
            'deleted'  => [],
        ];

        foreach ($this->newQuery()->pluck($this->keyColumn) as $key) {
            if (Arr::has($changes['inserted'], $key))
                $changes['updated'][$key] = $changes['inserted'][$key];
            else
                $changes['deleted'][] = $key;

            Arr::forget($changes['inserted'], $key);
        }

        return $changes;
    }
private function getChanges ( array $ data ) { $ changes = [ 'inserted' => Arr :: dot ( $ data ) , 'updated' => [ ] , 'deleted' => [ ] , ] ; foreach ( $ this -> newQuery ( ) -> pluck ( $ this -> keyColumn ) as $ key ) { if ( Arr :: has ( $ changes [ 'inserted' ] , $ key ) ) $ changes [ 'updated' ] [ $ key ] = $ changes [ 'inserted' ] [ $ key ] ; else $ changes [ 'deleted' ] [ ] = $ key ; Arr :: forget ( $ changes [ 'inserted' ] , $ key ) ; } return $ changes ; }
Get the changed settings data.

@param  array  $data

@return array
Get the changed settings data .