Form components package including WYSIWYG editor for NayKel Laravel applications.
- This package requires Google reCAPTCHA for validation. Once installed be sure to add the Google Captcha keys to your
.env
file.
composer require naykel/formit
php artisan vendor:publish --tag=nkr
php artisan vendor:publish --tag=formit-opt
Form controls by default are wrapped inside a .frm-row
.
Attribute | Default | Description |
---|---|---|
for | null |
|
value | null |
|
label | null |
Leave blank to remove label |
adv | false |
Remove .frm-row for custom layouts |
helpText | null |
|
required | true |
|
rowClasses | null |
Add additional classes to the .frm-row |
Accepts standard HTML attributes including class
Attribute | Default | Description |
---|---|---|
label | null |
Leave blank for default "Submit" |
default | true |
Select to use the default 'primary' button style |
adv | false |
Remove .frm-row for custom layouts |
rowClasses | null |
Add additional classes to the .frm-row |
<x-formit::submit />
<x-formit::submit label="Other Label" />
<x-formit::submit :default=false />
<x-formit::submit :default=false class="success" />
See the changelog for more information on what has changed recently.