mirror of
https://github.com/koel/koel
synced 2024-12-22 18:43:21 +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();
|
|
}
|
|
}
|