Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Laravel
  3. Laravel Setting

Laravel Setting

MITPHPv1.4.3

A Laravel package for persistent, application-wide settings with multiple storage backends.

GitHubGitHub
931 stars112 forks0 contributors

What is Laravel Setting?

Laravel Settings is a PHP package for Laravel that provides persistent, application-wide storage for configuration values, user preferences, or dynamic settings. It offers a unified interface to store and retrieve data using multiple backends like JSON files or databases, with support for dot-notation access and caching.

Target Audience

Laravel developers building applications that require persistent user-specific settings, dynamic configuration, or feature flags that need to survive across requests and sessions.

Value Proposition

Developers choose Laravel Settings for its native Laravel integration, flexible storage options, and simple API that reduces boilerplate code for managing persistent settings compared to manual database or file handling.

Overview

Persistent settings in Laravel

Use Cases

Best For

  • Storing user preferences and profile settings in Laravel applications
  • Managing dynamic configuration or feature flags that change at runtime
  • Handling application-wide settings that need to persist across sessions
  • Scoping settings to specific users or entities using database constraints
  • Reducing database load with cached settings retrieval
  • Extending storage backends with custom drivers for unique use cases

Not Ideal For

  • Applications requiring a graphical admin interface for managing settings without custom coding
  • Microservices architectures where settings need centralized, real-time synchronization across multiple services
  • Projects with extremely high-frequency setting updates where the auto-save middleware could add request latency
  • Use cases demanding built-in encryption for sensitive configuration data stored at rest

Pros & Cons

Pros

Flexible Storage Backends

Supports JSON files, databases, and custom stores via Laravel's Manager class, allowing developers to choose persistence based on performance or environment needs, as detailed in the README's configuration options.

Native Laravel Integration

Offers a clean API with facades, helper functions, and middleware for auto-saving, making it feel like a built-in Laravel component rather than a third-party add-on, as shown in the usage examples.

Scoped Settings Support

Enables user-specific or entity-scoped settings through extra columns or query constraints in database storage, ideal for multi-tenant apps, demonstrated with setExtraColumns and setConstraint methods.

Cache Performance Optimization

Includes configurable caching with TTL and write-triggered invalidation to reduce store load, as per the cache usage configurations in the README, improving read-heavy applications.

Cons

Manual Save Overhead

Auto-saving in Laravel 5.x only works via middleware for HTTP requests; console commands, queue workers, and other non-HTTP contexts require explicit Setting::save() calls, adding development complexity.

Version-Specific Setup Complexity

Installation and configuration differ for Laravel versions below 5.5, with separate steps for service providers and migrations, which can lead to confusion or errors, as noted in the README's installation sections.

Limited Built-in Features

Lacks out-of-the-box features like encryption for sensitive settings, validation, or a GUI admin panel, forcing developers to implement these separately if needed.

Frequently Asked Questions

Quick Stats

Stars931
Forks112
Contributors0
Open Issues10
Last commit4 months ago
CreatedSince 2014

Tags

#database#caching#laravel#json-storage#dot-notation#php-package#persistent-storage#configuration-management#application-settings

Built With

J
JSON
P
PHP
L
Laravel

Included in

Laravel13.0k
Auto-fetched 13 hours ago

Related Projects

LiveWireLiveWire

A full-stack framework for Laravel that takes the pain out of building dynamic UIs.

Stars23,556
Forks1,742
Last commit2 days ago
Debug BarDebug Bar

Debugbar for Laravel (Integrates PHP Debug Bar)

Stars19,270
Forks1,617
Last commit13 days ago
IDE HelperIDE Helper

IDE Helper for Laravel

Stars14,953
Forks1,191
Last commit14 days ago
Intervention ImageIntervention Image

PHP Image Processing

Stars14,356
Forks1,495
Last commit5 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub