v4.0.0
What's new
- Adds the ability to autoload custom components by form handle. Example:
{{ livewire:form handle="contact" }}will loadApp\Http\Livewire\ContactForm.phpif it exists. (#18)
Upgrade Guide
Required
- Make sure your custom components extend
Aerni\LivewireForms\Http\Livewire\BaseForm
Optional
The following changes are only necessary if you want to use the new autoloading capabilities.
- Ensure your custom components end with
Form, e.g. renameContacttoContactForm. - Change your template to use the default form component, e.g. use
{{ livewire:form handle="contact" }}instead of{{ livewire:contact }}. - You can safely remove the
public string $handleproperty from your component. - If you've set the
$viewand$themeproperty, exchange them withprotected static $VIEWandprotected static $THEME.