koel/app/Repositories/SettingRepository.php
2018-08-29 13:15:11 +07:00

18 lines
326 B
PHP

<?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();
}
}