PHP code example of normanhuth / nova-valuestore-settings
1. Go to this page and download the library: Download normanhuth/nova-valuestore-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/ */
normanhuth / nova-valuestore-settings example snippets
// in app/Providers/NovaServiceProvider.php
public function tools()
{
return [
// ...
new \NormanHuth\NovaValuestore\NovaValuestore
];
}
\NormanHuth\NovaValuestore\NovaValuestore::addSettingsFields([
Text::make('Public Name'),
]);
bash
php artisan vendor:publish --provider="NormanHuth\NovaValuestore\ToolServiceProvider" --tag="config"
bash
php artisan vendor:publish --provider="NormanHuth\NovaValuestore\ToolServiceProvider" --tag="translations"