koel/app/Repositories/SettingRepository.php

13 lines
245 B
PHP
Raw Normal View History

2018-08-29 06:15:11 +00:00
<?php
namespace App\Repositories;
class SettingRepository extends AbstractRepository
{
2020-12-22 20:11:22 +00:00
/** @return array<mixed> */
2018-08-29 06:15:11 +00:00
public function getAllAsKeyValueArray(): array
{
return $this->model->pluck('value', 'key')->all();
}
}