PHP code example of reedware / nova-field-manager
1. Go to this page and download the library: Download reedware/nova-field-manager 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/ */
reedware / nova-field-manager example snippets
\Reedware\NovaFieldManager\NovaFieldManagerServiceProvider::class // Service Provider
\Reedware\NovaFieldManager\Facade::class // Facade
/**
* Get the fields displayed by the resource.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function fields(Request $request)
{
return [
Field::id()->sortable(),
Field::text('Name', 'display_name')
->sortable()
->rules('
return [
/**
* Custom Fields
*/
'custom' => \NovaComponents\CustomField\Field::class
];