src/Drivers/Database.php
public function load()
    {
        $data = [];

        $settings = $this->database->select('SELECT * FROM '.$this->table);

        foreach ($settings as $setting) {
            $id = $setting->id;
            $value = $setting->value;

            $decoded = json_decode($value, 1, 512);
            if (is_array($decoded)) {
                $value = $decoded;
            }

            Arr::set($data, $id, $value);
        }

        return $data;
    }
public function load()
    {
        $data = [];

        $settings = $this->database->select('SELECT * FROM '.$this->table);

        foreach ($settings as $setting) {
            $id = $setting->id;
            $value = $setting->value;

            $decoded = json_decode($value, 1, 512);
            if (is_array($decoded)) {
                $value = $decoded;
            }

            Arr::set($data, $id, $value);
        }

        return $data;
    }
public function load ( ) { $ data = [ ] ; $ settings = $ this -> database -> select ( 'SELECT * FROM ' . $ this -> table ) ; foreach ( $ settings as $ setting ) { $ id = $ setting -> id ; $ value = $ setting -> value ; $ decoded = json_decode ( $ value , 1 , 512 ) ; if ( is_array ( $ decoded ) ) { $ value = $ decoded ; } Arr :: set ( $ data , $ id , $ value ) ; } return $ data ; }
Fetch the settings from the database

@return array
Fetch the settings from the database