Layout vs Wrapper
The Layout in a general Laravel project is called app.blade.php. A Tall-forms Wrapper is a blade component that you optionally use to wrap your form.
If you combine Layout with a Wrapper view the form will be wrapped with the view and placed in the Layout $slot.
|-layout
|-wrapper-view
|-formForm settings related to Layout and Wrapper
Layout and Wrapperprotected function formAttr(): array
{
return [
//these settings are optional, the example shows the default values
'wrapWithView' => true, //or false
'wrapViewPath' => config('tall-forms.wrap-view-path'), //blade view path, used as @include($wrapViewPath)
'layout' => "layouts.app", //blade view path, Default = Livewire looks for "layouts.app.blade.php"
];
}Last updated
Was this helpful?