<?php
namespace App\Repositories;

class SettingRepository extends BaseRepository {
    public function get($key, $default = null) {
        $stmt = $this->db->prepare("SELECT value FROM settings WHERE `key` = :key");
        $stmt->execute(['key' => $key]);
        $row = $stmt->fetch();
        return $row ? $row['value'] : $default;
    }
}

