Overview

Reading, writing, scoping and typing settings

Usage

There are three ways to reach the store, all backed by the same SettingsManager singleton:

php
use OiLab\OiLaravelSettings\Facades\Settings;

Settings::get('KEY', $default);
php
// The helper
setting('KEY', $default);
php
use OiLab\OiLaravelSettings\SettingsManager;

public function __construct(private SettingsManager $settings) {}

$this->settings->get('KEY');

Explore:

  • Reading & writingget, set, has, all, delete, forget, and the setting() helper.
  • Scopes — per-tenant / per-store values and global fallback.
  • Types & value objects — the type registry and spatie/laravel-data casts.
  • Seeding — shipping default settings.
Project under MIT License.
Design by