PHP code example of inani / laravel-nova-configuration

1. Go to this page and download the library: Download inani/laravel-nova-configuration library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

inani / laravel-nova-configuration example snippets


// inside app/Providers/NovaServiceProvder.php

// ...

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

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);
 bash
php artisan vendor:publish --provider="Inani\LaravelNovaConfiguration\ToolServiceProvider"
 bash
php artisan migrate

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