LaravelPackages.net
Acme Inc.
Toggle sidebar
lucascolette/laravel-nova-configuration-ptbr

A Laravel Nova tool.

9
0
1.1
About lucascolette/laravel-nova-configuration-ptbr

lucascolette/laravel-nova-configuration-ptbr is a Laravel package for a laravel nova tool.. It currently has 0 GitHub stars and 9 downloads on Packagist (latest version 1.1). Install it with composer require lucascolette/laravel-nova-configuration-ptbr. Discover more Laravel packages by lucascolette or browse all Laravel packages to compare alternatives.

Last updated

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.

Star History Chart