Introduction
Discover OI Laravel Settings and what it can do for your project
OI Laravel Settings
OI Laravel Settings is a small, opinionated store for application settings:
key/value pairs persisted in a settings table, cached per scope, and cast to
real PHP types — including spatie/laravel-data
value objects — through a configurable type registry.
Highlights
- Scoped values — every setting belongs to an optional
scope(null= the global layer). Reads resolvecurrent scope → global → default, so a multi-tenant / multi-store app can override any global default per scope. - Typed casts — a setting's
typedecides how itsvalueis cast. Built-in primitives (string,integer,float,boolean,json) plus anyDatavalue object you register (e.g. an email template). - Caching — per-scope maps are cached and automatically busted on write.
- Ergonomic API — the
Settingsfacade, asetting()helper, or the injectedSettingsManager. - Definition-driven seeding — ship default settings with a base seeder.
Head to Installation to get started.