public function __construct() { $settings = DB::table('settings')->get(); foreach ($settings as $item) { $this->items[$item->key] = $item->value; } }