TALL-forms
  • TALL-forms
  • Installation
    • Quickstart: Artisan cmd
    • Manual installation
      • Package
      • Translations
      • Css & Theme
      • Javascript
      • Tailwind
      • Laravel Mix
      • Wrapper view
      • Laravel Jetstream/Breeze
  • Upgrade v7 to v8
    • Configuration changes
    • Component & Field changes
    • Blade view changes
    • Notification changes
    • Styling changes
  • Concept
    • Configuration
    • Validation
    • Styling
    • Icons
    • Javascript
    • Layout vs Wrapper
    • Model binding
    • Manually saving data
    • Extend Blade Components
  • Create Forms
    • Form Data
    • Form Types
      • Standard form
      • As modal
      • Without buttons
      • Fields only
      • Headless
    • Form attributes
    • Form buttons
    • Form slots
    • Form methods
    • Lifecycle hooks
    • Render a form
    • Mass generate
  • Fields
    • Declaration
    • Labels
    • Field Slots
    • Field methods
    • Custom field attributes
    • Conditional field
    • Custom view
    • Custom field
    • Custom Livewire component
    • Relations
    • Fields
      • Checkbox
      • Checkboxes
      • FileUpload
      • Honeypot
      • ImageCropper
      • Input
      • Password
      • InputArray
      • KeyVal (array)
      • Radio
      • Range
      • Repeater (array)
      • Search
      • Select & Multiselect
      • Tags
      • TagsSearch
      • Textarea
      • Trix
      • SpatieTags
    • Sponsor Fields
      • More Inputs
      • CKEditor
      • DatePicker
      • Heading
      • Markdown
      • Panels
      • SearchList
      • SelectOptGroup
      • Tabs
      • Trix, file-uploads
  • Blade components
    • Notifications
    • Label wrapper
    • Button
    • Modal blade component
    • Modal form blade component
  • Examples
    • Input examples
    • Array fields example
Powered by GitBook
On this page
  • Creating a wrapper view is mandatory, using it, is optional!
  • Quick setup
  • 1. Create a wrapper view
  • 2. Set your default wrapper view in config

Was this helpful?

  1. Installation
  2. Manual installation

Wrapper view

Creating a wrapper view is mandatory, using it, is optional!

You have to create a wrapper view, otherwise you'll get an error when you run php artisan view:cache.

If you don't want to use it, set $wrapWithView to false in config

Quick setup

1. Create a wrapper view

  • Example path: resources/views/layouts/tall-form-wrapper-layout.blade.php

  • the view must contain @include('tall-forms::form')

Example wrapper view for Laravel 8 using Jetstream or Breeze

<x-slot name="header">
    <h2 class="font-semibold text-xl text-gray-800 leading-tight">
        {{ $formTitle ?? null }}
    </h2>
</x-slot>
<div class="py-12">
    <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
        <div class="bg-white overflow-hidden shadow-xl sm:rounded-lg p-12">
            @include('tall-forms::form')
        </div>
    </div>
</div>

2. Set your default wrapper view in config

Set your default view in the config/tall-forms.php file.

'wrapViewPath' => 'layouts.tall-form-wrapper-layout', //path.name-to-your-blade-view

PreviousLaravel MixNextLaravel Jetstream/Breeze

Last updated 3 years ago

Was this helpful?

More info on the page

Layout vs Wrapper