elbowspaceuk / laravel-settings
Settings for Laravel
Fund package maintenance!
Buymeacoffee
Installs: 2 052
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 3
Requires
- php: ^8.0
- laravel/framework: ^8.0|^9.0
- tobytwigger/form-schema-generator: ^3.0
Requires (Dev)
- brianium/paratest: ^6.3
- orchestra/testbench: ^6.2|^7.0
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.4
This package is auto-updated.
Last update: 2024-10-18 23:55:37 UTC
README
Powerful and feature rich settings for Laravel.
Contents
About
Laravel Settings lets you persist strongly typed settings within your app, with support for
- Validation, encryption and authorization controls provided.
- Global settings and user-set settings.
- Native integration with Vue JS.
Example
\Settings\Setting::setValue('dark_mode', true); echo \Settings\Setting::getValue('dark_mode'); // true
<template> <div :class="{'dark-mode': $setting.dark_mode}"></div> <button @click="toggleDarkMode">Toggle</button> </template> <script> export default { methods: { toggleDarkMode() { this.$setting.dark_mode = !this.$setting.dark_mode; } } } </script>
Documentation
We've taken care over documenting everything you'll need to get started and use Laravel settings fully.
Check out the docs on our documentation site.
Contributing
Contributions are welcome! Before contributing to this project, familiarize yourself with CONTRIBUTING.md.
Copyright and Licence
This package is copyright © Toby Twigger and licensed for use under the terms of the MIT License (MIT). Please see LICENCE.md for more information.
Contact
For any questions, suggestions, security vulnerabilities or help, open an issue or email me directly at tobytwigger1@gmail.com