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 & writing —
get,set,has,all,delete,forget, and thesetting()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.