brainstormbuddy / Simple-Nova-Tool

A simple Nova tool to manage settings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nova Settings

Add Settings via code and edit with Nova.

Requirements

  • Laravel Nova

Installation

composer require bambamboole/nova-settings

Usage

After installing the tool you need to add it to your nova tools.

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

Now you can add Sections and Fields in your Service Providers boot method.

    public function boot()
    {
        $settingsManager = $this->app->get(NovaSettingsManager::class);

        $settingsManager->addSection('Company', 'Details about the company');
        $settingsManager->addField('Company Name', 'text', 'company', 'the full company name');
    }

Current possible types are text and time.

##Screenshots screenshot
screenshot
screenshot

Roadmap

  • Native Nova Fields
  • Validation
  • Scopes

About

A simple Nova tool to manage settings


Languages

Language:PHP 46.5%Language:Vue 45.1%Language:Blade 5.1%Language:JavaScript 3.2%Language:SCSS 0.1%