mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +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();
|
|
}
|
|
}
|