sashalenz / nova-poshta-wireforms-fields
This is my package nova-poshta-wireforms-fields
2.1.0
2024-04-01 12:32 UTC
Requires
- php: ^8.2
- illuminate/contracts: ^10.0|^11.0
- sashalenz/nova-poshta-api: @dev || ^2.1
- spatie/laravel-package-tools: ^1.16.4
- xitedev/wireforms: @dev || ^1.2
Requires (Dev)
- laravel/pint: ^1.2
- nunomaduro/collision: ^8.1
- nunomaduro/larastan: ^2.2
- pestphp/pest: ^1.22
- pestphp/pest-plugin-laravel: ^1.3
- phpstan/extension-installer: ^1.2
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.2
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
README
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.