mirror of
https://github.com/koel/koel
synced 2024-12-01 00:09:17 +00:00
18 lines
326 B
PHP
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();
|
|
}
|
|
}
|