PHP code example of sashalenz / nova-poshta-wireforms-fields
1. Go to this page and download the library: Download sashalenz/nova-poshta-wireforms-fields 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/ */
sashalenz / nova-poshta-wireforms-fields example snippets
use Illuminate\Support\Collection;
use Sashalenz\NovaPoshtaWireformsFields\FormFields\NovaPoshtaWarehouseField;
use Xite\Wireforms\FormFields\HiddenField;
public function fields(): Collection
{
return collect([
NovaPoshtaWarehouseField::make('warehouse_ref', __('Warehouse Ref'))
-> 'string'
])
]);
}
bash
php artisan vendor:publish --tag="nova-poshta-wireforms-fields-views"