PHP code example of outl1ne / nova-currency-vat-field

1. Go to this page and download the library: Download outl1ne/nova-currency-vat-field 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/ */

    

outl1ne / nova-currency-vat-field example snippets


use Outl1ne\NovaCurrencyVatField\CurrencyVAT;

public function fields(Request $request) {
    CurrencyVAT::make('Price', 'price')
      ->VAT(20), // Required, otherwise VAT checkbox isn't rendered
      ->storedWithVAT(), // By default with VAT
      ->storedWithoutVAT()
}