All Projects → epigra → nova-settings

epigra / nova-settings

Licence: other
A tool for editing settings on your project using akaunting/setting package on Laravel Nova

Programming Languages

PHP
23972 projects - #3 most used programming language
Vue
7211 projects
Blade
752 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to nova-settings

nova-dynamic-field
Dynamic field for Laravel Nova
Stars: ✭ 18 (+0%)
Mutual labels:  settings, laravel-nova
nova-opcache
OPcache Tool for Laravel Nova
Stars: ✭ 21 (+16.67%)
Mutual labels:  laravel-nova, laravel-nova-tool
nova-sluggable
Slug field for Laravel Nova
Stars: ✭ 40 (+122.22%)
Mutual labels:  laravel-nova
nova-grouped-field
Combine multiple Nova fields as one field output
Stars: ✭ 43 (+138.89%)
Mutual labels:  laravel-nova
nova-horizon-stats
Nova cards for Laravel applications that use Laravel Horizon
Stars: ✭ 31 (+72.22%)
Mutual labels:  laravel-nova
Better-Fox
An up-to-date user.js to speed up and secure Firefox
Stars: ✭ 158 (+777.78%)
Mutual labels:  settings
select-auto-complete
An auto-completing Laravel Nova search field
Stars: ✭ 34 (+88.89%)
Mutual labels:  laravel-nova
dotfiles
software setting files
Stars: ✭ 15 (-16.67%)
Mutual labels:  settings
SetEdit
Open source version of the original Settings Database Editor
Stars: ✭ 46 (+155.56%)
Mutual labels:  settings
nova-html
This field allows you display custom HTML in Laravel Nova, be it a link, an image or any other piece of proper html.
Stars: ✭ 13 (-27.78%)
Mutual labels:  laravel-nova
SettingsAppInSwiftUI
I have recreated a Settings App in iPhoneXR using SwiftUI concepts such as Form,Section,Toggle,Picker,Stack..etc
Stars: ✭ 37 (+105.56%)
Mutual labels:  settings
CleanUI
Android library to create beautiful, clean and minimal UIs.
Stars: ✭ 19 (+5.56%)
Mutual labels:  settings
wm-settings
Based on the WordPress Settings API, this class generates options pages. It supports all basic input types, selects and all, but also media uploads, which is quite neat.
Stars: ✭ 21 (+16.67%)
Mutual labels:  settings
nova-url-field
A URL input and link field for Laravel Nova
Stars: ✭ 96 (+433.33%)
Mutual labels:  laravel-nova
Profit-Trailer-Settings
Settings for Profit Trailer bot
Stars: ✭ 20 (+11.11%)
Mutual labels:  settings
nova-translatable
Nova Field for spatie/laravel-translatable package.
Stars: ✭ 84 (+366.67%)
Mutual labels:  laravel-nova
climatecontrol
Python library for loading settings and config data from files and environment variables
Stars: ✭ 20 (+11.11%)
Mutual labels:  settings
laravel-nova-order-nestedset-field
Laravel Nova field that make your resources orderable
Stars: ✭ 21 (+16.67%)
Mutual labels:  laravel-nova
LibPortablePlus
-----
Stars: ✭ 17 (-5.56%)
Mutual labels:  settings
laravel-nova-visual-composer
Visual Composer for Laravel Nova
Stars: ✭ 15 (-16.67%)
Mutual labels:  laravel-nova

Nova Settings

This Laravel Nova package allows you to create custom settings in code (using Nova's native fields) and creates a UI for the users where the settings can be edited by using akaunting/setting package.

Installation

Install the package in a Laravel Nova project via Composer:

composer require epigra/nova-settings

To publish the database migration(s) configuration of akaunting/setting

php artisan vendor:publish --tag=setting
php artisan vendor:publish --tag=nova-settings
php artisan migrate

Register the tool with Nova in the tools() method of the NovaServiceProvider:

// in app/Providers/NovaServiceProvider.php

public function tools()
{
    return [
        // ...
        new \Epigra\NovaSettings\NovaSettingsTool
    ];
}

Usage

Registering fields

Define the fields in your NovaServiceProvider's boot() function by calling NovaSettings::addSettingsFields().

\Epigra\NovaSettings\NovaSettingsTool::addSettingsFields([
    Text::make('Some setting', 'some_setting'),
    Number::make('A number', 'a_number')
]);

// OR

// Using a callable
\Epigra\NovaSettings\NovaSettingsTool::addSettingsFields(function() {
  return [
    Text::make('Some setting', 'some_setting'),
    Number::make('A number', 'a_number'),
  ];
});

Configuration

reload_page_on_save

This feature is turned off per default. You may turn it on by changing reload_page_on_save value from false to true under config/nova-settings.php to reload the entire page on save. Useful when updating any Nova UI related settings.

Credits

Thanks for the inspiration.

akaunting/setting

You can visit https://github.com/akaunting/setting to get more information on how to use getters/setters and facade of settings package.

optimistdigital/nova-settings

This package is inspired by optimistdigital/nova-settings

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].