Looking to hire Laravel developers? Try LaraJobs

laravel-settings maintained by eksprt

Description
Eksprt settings module for Laravel projects like SnippetCMS
Author
Last update
2026/07/16 15:26 (dev-main)
License
Links
Downloads
0

Comments
comments powered by Disqus

Settings package for Laravel

PHP Composer Latest Version on Packagist Total Downloads

This package allows you to save settings in DB & Cache. You can use helper function to get settings value anywhere in a Laravel project like SnippetCMS.

  • Database support
  • Helper function
  • Cache support

Getting Started

1. Install

Run the following command:

composer require eksprt/laravel-settings

2. Publish

Publish config file.

php artisan vendor:publish --provider="Eksprt\LaravelSettings\SettingsServiceProvider" --tag=settings-config

3. Preparing the database

You need to publish the migration to create the media table:

php artisan vendor:publish --provider="Eksprt\LaravelSettings\SettingsServiceProvider" --tag=settings-migration

After that, you need to run migrations.

php artisan migrate

4. Configure

You can change the options of your app from config/laravel-settings.php file

Usage

Helper

setting()->get('promo');
setting()->get('promo', 'default');
setting()->put('promo', 'snippet');
setting()->delete('promo');

Facade

Setting::get('promo');
Setting::get('promo', 'default');
Setting::put('promo', 'snippet');
Setting::delete('promo');

Testing

./vendor/bin/phpunit

Changelog

Please see Releases for more information what has changed recently.

Contributing

Pull requests are more than welcome. You must follow the PSR coding standards.

Security

If you discover any security related issues, please email developer@eksprt.com instead of using the issue tracker.

License

The MIT License (MIT). Please see LICENSE for more information.