moh6mmad / laravel-settings
This package allows you to add settings to your Laravel project
v1.1.7
2022-08-18 09:49 UTC
Requires
- php: >=7.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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