koel/app/Repositories/SettingRepository.php
2020-12-23 12:03:53 +01:00

12 lines
245 B
PHP

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