PHP code example of bambamboole / nova-settings
1. Go to this page and download the library: Download bambamboole/nova-settings 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/ */
bambamboole / nova-settings example snippets
public function tools()
{
return [
//...
new \Bambamboole\NovaSettings\NovaSettings(),
//...
];
}
public function boot()
{
$settingsManager = $this->app->get(NovaSettingsManager::class);
$settingsManager->addSection('Company', 'Details about the company');
$settingsManager->addField('Company Name', 'text', 'company', 'the full company name');
}