koel/app/Repositories/SettingRepository.php

19 lines
326 B
PHP
Raw Normal View History

2018-08-29 06:15:11 +00:00
<?php
namespace App\Repositories;
use App\Models\Setting;
class SettingRepository extends AbstractRepository
{
public function getModelClass(): string
{
return Setting::class;
}
public function getAllAsKeyValueArray(): array
{
return $this->model->pluck('value', 'key')->all();
}
}