Skip to content

Latest commit

 

History

History
56 lines (46 loc) · 1.24 KB

Readme.md

File metadata and controls

56 lines (46 loc) · 1.24 KB

SiteConfig Laravel Package

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.

Installation

To install the package, add it to your Laravel project using Composer:

composer require intelrx/sitesettings

Usage

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') }}

Storing Settings

To store a new site setting, use the store method:

SiteConfig::store('phone', '1234567890');

Retrieving Settings

To retrieve a stored site setting, use the get method:

$phone = SiteConfig::get('phone');

Updating Settings

To update an existing site setting, use the update method:

SiteConfig::update('phone', '18487');

Deleting Settings

To delete a site setting, use the delete method:

SiteConfig::delete('phone');

Listing all Setting

To list complete site settings use the list method:

SiteConfig::list();