inani/laravel-nova-configuration

A Laravel Nova tool.
28,506 40
Install
composer require inani/laravel-nova-configuration
Latest Version:1.3
PHP:>=7.1.0
License:MIT
Last Updated:May 13, 2019
Links: GitHub  ·  Packagist
Maintainer: akiyamaSM

laravel-nova-configuration

Use Configuration inputs instead of the env/config files. Good news for the clients! nova-conf

Requirements

Laravel Nova.

Installation

First install the Nova package via composer:

composer require inani/laravel-nova-configuration

Next up, you must register the tool via the tools method of the NovaServiceProvider.

// inside app/Providers/NovaServiceProvder.php

// ...

public function tools()
{
    return [
        // ...
        new \Inani\LaravelNovaConfiguration\LaravelNovaConfiguration()
    ];
}

Publish the config file:

php artisan vendor:publish --provider="Inani\LaravelNovaConfiguration\ToolServiceProvider"

Then run the migration

php artisan migrate

Usage

In the back office

After installing the tool, you should see the new sidebar navigation item for Packages Configuration. And then just you have to manipulate the settings.

In the code

use Inani\LaravelNovaConfiguration\Helpers\Configuration;

// Get the value of the API_GOOGLE key, null if it doesn't exist
$value = Configuration::get('API_GOOGLE');

// Get the value of the FOO key, 'BAR' if it doesn't exist
$value = Configuration::get('FOO', 'BAR);
Updating the sidebar bar label

If you want to update the display name of the tool in the Laravel Nova sidebar, You can simply update the sidebar-label in the following file

resources/views/laravel-nova-configuration/navigation.blade.php

Enjoy coding.

Related Packages

epartment/nova-dependency-container

A Laravel Nova field container allowing to depend on other fields values

4,685,986 378
eminiarts/nova-tabs

Laravel Nova - Tabs.

4,590,384 464
ebess/advanced-nova-media-library

Laravel Nova tools for managing the Spatie media library.

3,829,438 616
spatie/nova-tags-field

A tags field for Nova apps

2,320,736 301
kabbouchi/nova-impersonate

A Laravel Nova field allows you to authenticate as your users.

2,260,164 234

Version History

Version Released PHP License
1.3 >=7.1.0 MIT
1.2 >=7.1.0 MIT
1.1 >=7.1.0 MIT
1.0 >=7.1.0 MIT