laravel-settings-vue 1.0.1
Install from the command line:
Learn more about npm packages
$ npm install @tobytwigger/laravel-settings-vue@1.0.1
Install via package.json:
"@tobytwigger/laravel-settings-vue": "1.0.1"
About this version
Powerful and feature rich settings for Laravel and Vue.
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.
This is the Vue integration. You will also need to install the Laravel Settings package.
\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>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.
Contributions are welcome! Before contributing to this project, familiarize yourself with CONTRIBUTING.md.
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.
For any questions, suggestions, security vulnerabilities or help, open an issue or email me directly at tobytwigger1@gmail.com
Details
- laravel-settings-vue
-
tobytwigger
- over 3 years ago
- ISC
- 21 dependencies
Assets
- laravel-settings-vue-1.0.1-npm.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0