sashalenz / nova-poshta-wireforms-fields

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is my package nova-poshta-wireforms-fields

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.

About

License:MIT License


Languages

Language:PHP 90.5%Language:Blade 9.5%