<?php namespace App\Repositories; use App\Models\Setting; use Illuminate\Database\Eloquent\Collection; use Illuminate\Support\Facades\Cache; class SettingsRepository { public function all(): Collection { return Cache::rememberForever('settings', function () { return Setting::pluck('value', 'key'); }); } }