Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/raza9798/site-settings

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
https://github.com/raza9798/site-settings

laravel laravel-framework laravel11 php php83

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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:
```php
composer require intelrx/sitesettings
```

# Usage
Import the package in your class
```php
use Intelrx\Sitesettings\SiteConfig;

SiteConfig::store('phone', '1234567890');
SiteConfig::get('phone');
SiteConfig::update('phone', '18487');
SiteConfig::delete('phone');
SiteConfig::list()
```

usage in the blade
```php
{{ SiteConfig::get('phone') }}
```

## Storing Settings
To store a new site setting, use the store method:

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

## Retrieving Settings
To retrieve a stored site setting, use the get method:
```php
$phone = SiteConfig::get('phone');
```

## Updating Settings
To update an existing site setting, use the update method:
```php
SiteConfig::update('phone', '18487');
```

## Deleting Settings
To delete a site setting, use the delete method:
```php
SiteConfig::delete('phone');
```

## Listing all Setting
To list complete site settings use the list method:
```php
SiteConfig::list();
```