aerni / statamic-livewire-forms

Supercharge your Statamic forms with Livewire
https://statamic.com/addons/aerni/livewire-forms
Other
28 stars 2 forks source link

Add support for spacer fieldtype #39

Closed aerni closed 1 year ago

aerni commented 1 year ago

This PR adds support for Statamic's new spacer fieldtype. Follow these instructions to use the spacer fieldtype.

Add the spacer fieldtype to the models array in your livewire-forms.php config file:

'models' => [
+    \Statamic\Fieldtypes\Spacer::class => \Aerni\LivewireForms\Fields\Spacer::class,
],

Add an empty spacer.blade.php view in the fields directory of each of your themes. Example: resources/views/livewire/forms/default/fields/spacer.blade.php