Skip to content

ReeceM/settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b3bbb84 Â· Jan 2, 2023

History

81 Commits
Sep 10, 2019
May 12, 2019
Jun 2, 2019
May 5, 2019
Jun 2, 2019
Jun 2, 2019
May 5, 2019
May 13, 2019
May 12, 2019
May 12, 2019
May 3, 2019
Jun 2, 2019
May 12, 2019
Jun 2, 2019
Jun 2, 2019
Jan 2, 2023
Jan 2, 2023
May 12, 2019
Jun 2, 2019
Jun 2, 2019

Repository files navigation

settings

Laravel Settings package that is persistent to DB

This setting package makes use of the key-value storage method of settings.

Installing

Require via composer

composer require reecem/settings

Then install through the artisan command

php artisan settings:install

updates

when there is a new release please run settings:update just to refresh the published assets

php artisan settings:update

Features

  • Settings are cached to reduce reading time from the db
  • setting() helper to access the settings from anywhere
  • multi.dimension.setting.array - the settings can be saved in assoc array form
  • settings can be cast to arrays, JSON or boolean from default
  • WIP: encrypt the entire cached setting file

todo

There is always something todo

  • add an encrypt option to individual settings
  • improve the ui of the settings panel
  • unit tests...

Support

If you enjoy using the package you can support me on Ko-Fi or by paypal 😄

Buy Me a Coffee at ko-fi.com   PayPal