PHP code example of lucascolette / laravel-nova-configuration-ptbr
1. Go to this page and download the library: Download lucascolette/laravel-nova-configuration-ptbr 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/ */
lucascolette / laravel-nova-configuration-ptbr example snippets
// inside app/Providers/NovaServiceProvder.php
// ...
public function tools()
{
return [
// ...
new \Inani\LaravelNovaConfiguration\LaravelNovaConfiguration()
];
}
// Get the value of the API_GOOGLE key, null if it doesn't exist
use Inani\LaravelNovaConfiguration\Helpers\Configuration;
$value = Configuration::get('API_GOOGLE');
bash
php artisan vendor:publish --provider="Inani\LaravelNovaConfiguration\ToolServiceProvider"
bash
php artisan migrate