Download the PHP package anisaronno/laravel-settings without Composer
On this page you can find all versions of the php package anisaronno/laravel-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anisaronno/laravel-settings
More information about anisaronno/laravel-settings
Files in anisaronno/laravel-settings
Package laravel-settings
Short Description A Laravel package for managing application settings, similar to WordPress options.
License MIT
Homepage https://github.com/anisAronno/laravel-settings
Informations about the package laravel-settings
Laravel Settings Package
- Laravel settings control as like as WordPress options
Table of Contents
- Laravel Settings Package
- Table of Contents
- Introduction
- Installation
- Publish Migration, Factory, Config, and Seeder
- Run Migration
- Run Seeder
- Usage
- Check if a Key Exists in Database
- Get Settings Field
- Get All Settings Fields
- Set Settings
- Update Settings
- Update or Create Settings
- Delete Settings
- Contribution Guide
- License
Introduction
The Laravel Settings package simplifies the management of application settings in your Laravel project. This README provides installation instructions, usage examples, and additional information.
Installation
To get started, install the package using Composer:
Publish Migration, Factory, Config, and Seeder
You need to publish migration files, factories, configuration files, and a seeder:
Run Migration
Apply the migrations to set up the settings table:
Run Seeder
Seed the settings table with initial data:
Usage
The package provides methods for managing settings. Here are the available functions:
Check if a Key Exists in Database
You can use the hasSettings
method to check if a key exists in the database:
Get Settings Field
Retrieve a specific setting using its key:
Get All Settings Fields
Fetch all settings fields:
Set Settings
Create or update a setting:
Update Settings
Update an existing setting:
Update or Create Settings
Update or Create setting:
Delete Settings
Update an existing setting:
Contribution Guide
Please follow our Contribution Guide if you'd like to contribute to this package.
License
This package is open-source software licensed under the MIT License.