Installation
#Installation
#Download
Download the package from Statamic's marketplace.
#Configure the advanced controls package
The Livewire form package comes with a dependency on our components from the Advanced controls library. If you had not installed it yet, go follow the instructions to configure it.
#Publishing the form fields
Run the following command so that the fields used to render forms stop being the raw fields configured by Statamic.
php artisan vendor:publish livewire-forms-fields
This creates files into /resources/views/vendor/statamic/forms/fields/. You are free to update the code in the files if you want to tweak the design.
#Configuration options
Optionally, the package comes with a number of options that you can tweak after running:
php artisan vendor:publish livewire-forms-config
The options control:
What tag is used to render a form in your template (default:
<livewire:statamic-form>).The behavior of forms regarding fields with a default value (Prefill the field and/or fill it if empty on submit).
How a successful form submission is rendered (Show a toast message or replace the form by an alert).
Whether a badge should be added to indicate fields that require a value before the form is submitted.
#Congratulations
The installation is done.