1. Go to this page and download the library: Download bitcodesa/nova-label 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/ */
bitcodesa / nova-label example snippets
namespace App\Nova;
use Bitcodesa\NovaLabel\ResourceLabel;
use Laravel\Nova\Http\Requests\NovaRequest;
use Laravel\Nova\Resource as NovaResource;
abstract class Resource extends NovaResource
{
use ResourceLabel;
// ...
}
Text::make(...self::attribute('name')); // field name and attribute same
Text::make(...self::attribute('name', 'fullName')); // field name: name, attribute: fullName