moh6mmad / laravel-settings
This package allows you to add settings to your Laravel project
Installs: 3 508
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
README
This package allows you to store some global settings into your app database and load them once you need them in entire app globally.
Installation
Install my-project with npm
composer require moh6mmad/laravel-settings
Documentation
You may call set and get functions in several ways. Settings are stored in database as following:
settings_group
and name
and value
You need to call both settings_group
and name
to access to the value
Usage
Call it via config
config('settings.ui.template.header_title')
Call it via its helper
setting('ui.template.header_title')
or set a new value for this Call it via its helper
setting('ui.template.header_title', 'Laravel Setting App')
Feedback
If you have any feedback, please reach out to us at mamm6d@gmail.com