koel/app/Repositories/SettingRepository.php
2020-12-22 21:11:22 +01:00

19 lines
358 B
PHP

<?php
namespace App\Repositories;
use App\Models\Setting;
class SettingRepository extends AbstractRepository
{
public function getModelClass(): string
{
return Setting::class;
}
/** @return array<mixed> */
public function getAllAsKeyValueArray(): array
{
return $this->model->pluck('value', 'key')->all();
}
}