panjinamjaelf / kaguya
Save app settings on laravel framework.
Requires
- php: ^7.2.5
- illuminate/support: ^6.0 | ^7.0 | ^8.0
Requires (Dev)
- orchestra/testbench: ^5.0
- phpunit/phpunit: ^8.5
- dev-master
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/qs-and-express-6.11.0
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
- dev-dependabot/npm_and_yarn/eventsource-1.1.1
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/npm_and_yarn/minimist-1.2.6
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/ws-6.2.2
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/ssri-6.0.2
This package is auto-updated.
Last update: 2024-11-06 11:57:21 UTC
README
Laravel package used to store your app settings.
Installation
composer require panjinamjaelf/kaguya
After install the package you should run the kaguya:install
artisan command. This command will publish kaguya assets and migrate database.
Configuration
You can configure the available menu on settings with publishing the package configuration
php artisan vendor:publish --tag=kaguya-config
Content of the configuration
Usage
To get setting value from storage
setting('setting_name', 'default');
Set current setting value
setting(['setting_name' => 'value']);
If you want to reset your current settings to default value you can run this command
php artisan kaguya:reset
Add this following script on any view or controller to get settings page url
route('settings');
View
If you want to customize the view you can publish the view with this command
php artisan vendor:publish --tag=kaguya-views
Translation
This package contain translation files, you may run this command to customize the translation.
php artisan vendor:publish --tag=kaguya-translations
License
This project and the Laravel framework are open-sourced software licensed under the MIT license.