Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
N

Configuration management

Installation Instructions

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


// Get the value of the API_GOOGLE key, null if it doesn't exist

use Inani\LaravelNovaConfiguration\Helpers\Configuration;

$value = Configuration::get('API_GOOGLE');

Enjoy coding.

Readme

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.

Screenshots

Back to Top
Added 7 years ago
Last updated 6 Years Ago
Version 1.3
Composer
inani/laravel-nova-configuration
GitHub stars 39
Packagist downloads 27,887

Favorites

25 users favorited

Rating

4.50
(out of 5)
★★★★★
★★★★
★★★
★★
4 ratings

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas