Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/raza9798/site-settings
- Owner: Raza9798
- License: mit
- Created: 2024-08-29T20:41:46.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-09-30T20:56:10.000Z (3 months ago)
- Last Synced: 2024-10-11T11:01:30.398Z (2 months ago)
- Topics: laravel, laravel-framework, laravel11, php, php83
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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();
```