Warcott integration for the Laravel Framework
osi-open-source/warcott-laravel-forms is a Laravel package for warcott integration for the laravel framework.
It currently has 0 GitHub stars and 16 downloads on Packagist (latest version 1.0.3).
Install it with composer require osi-open-source/warcott-laravel-forms.
Discover more Laravel packages by osi-open-source
or browse all Laravel packages to compare alternatives.
Last updated
It parses Warcott's json forms and displays a form. It uses Warcott Client library to fetch the data from the server. This library is in progress and not all field inputs from Warcott are supported. Behaviour from Preview of the form may vary as it is pure javascript realization.
Simply add the following line to your composer.json and run install/update:
"osi-open-source/warcott-laravel-form": "*"
Publish the package config files to enter your credentials
php artisan vendor:publish --tag=warcott --force
This is an example of displaying a form Layout in your view.
{{ warcottDisplay('domainKey') }}
For API consummation, mapping of data and form manupulation you can check Warcott Client's usage
If you want to show all errors for unsupported fields you can change resources/views/fields/base.blade.php line
@includeIf('warcott::fields.'.($field['type'] ?? 'text'))
with
@include('warcott::fields.'.($field['type'] ?? 'text'))