This Laravel package provides a simple and efficient way to manage site settings. You can store, retrieve, update, and delete configuration settings on a application using the SiteConfig class.
To install the package, add it to your Laravel project using Composer:
composer require intelrx/sitesettings
Import the package in your class
use Intelrx\Sitesettings\SiteConfig;
SiteConfig::store('phone', '1234567890');
SiteConfig::get('phone');
SiteConfig::update('phone', '18487');
SiteConfig::delete('phone');
SiteConfig::list()
usage in the blade
{{ SiteConfig::get('phone') }}
To store a new site setting, use the store method:
SiteConfig::store('phone', '1234567890');
To retrieve a stored site setting, use the get method:
$phone = SiteConfig::get('phone');
To update an existing site setting, use the update method:
SiteConfig::update('phone', '18487');
To delete a site setting, use the delete method:
SiteConfig::delete('phone');
To list complete site settings use the list method:
SiteConfig::list();