osi-open-source / warcott-laravel-forms
Warcott integration for the Laravel Framework
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Language:HTML
Requires
- php: >=7.1.0
- illuminate/support: >=5.5.0
- osi-open-source/warcott-client: *
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-29 05:23:08 UTC
README
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.
Installation
Simply add the following line to your composer.json
and run install/update:
"osi-open-source/warcott-laravel-form": "*"
Configuration
Publish the package config files to enter your credentials
php artisan vendor:publish --tag=warcott --force
Usage
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
Developers info
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'))