sashalenz/nova-poshta-wireforms-fields

This is my package nova-poshta-wireforms-fields

2.1.0 2024-04-01 12:32 UTC

This package is auto-updated.

Last update: 2024-05-01 12:39:24 UTC


README

Latest Version on Packagist Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require sashalenz/nova-poshta-wireforms-fields

Optionally, you can publish the views using

php artisan vendor:publish --tag="nova-poshta-wireforms-fields-views"

Usage

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'))
            ->required()
            ->searchable()
            ->cityRef('CITY REF HERE')
            ->titleKey('warehouse_name')
            ->rules([
                'uuid'
            ]),
            
        HiddenField::make('warehouse_name', __('Warehouse Name'))
            ->nullable()
            ->rules([
                'string'
            ])
    ]);
}

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.