-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# 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 your/package-name | ||
|
||
# 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() | ||
``` | ||
|
||
## 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(); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters