public function all()
    {
        try {
            return $this->model->all(['name', 'value'])->pluck('value', 'name')->map(function ($value, $name) {
                return $this->castSetting($name, $value);
            })->toArray();
        } catch (Exception $e) {
            throw new ReadException($e);
        }
    }
public function all()
    {
        try {
            return $this->model->all(['name', 'value'])->pluck('value', 'name')->map(function ($value, $name) {
                return $this->castSetting($name, $value);
            })->toArray();
        } catch (Exception $e) {
            throw new ReadException($e);
        }
    }
public function all ( ) { try { return $ this -> model -> all ( [ 'name' , 'value' ] ) -> pluck ( 'value' , 'name' ) -> map ( function ( $ value , $ name ) { return $ this -> castSetting ( $ name , $ value ) ; } ) -> toArray ( ) ; } catch ( Exception $ e ) { throw new ReadException ( $ e ) ; } }
Returns a setting from the database.

@throws \CachetHQ\Cachet\Settings\ReadException

@return array
Returns a setting from the database .