Skip to content

v6 upgrade guide

tanthammar edited this page Nov 13, 2020 · 1 revision

New

  • Nested KeyVal fields
  • Multiselect, Checkboxes can be added to both Repeaters and KeyVal fields
  • Artisan installation command for Laravel 7 and 8 (with and without Jetstream)
    • Installs tailwind.config.js, webpack.mix.js, theme.css, custom.css, app.css, wrapper view and more.
  • Svg Blade component
    • <x-tall-svg :path="path.blade-view" class="..." />
    • All required icons are provided with the package
  • Several icon methods for Input field
    • ->icon() Blade UI Icon
    • ->tallIcon() Blade view file
    • ->htmlIcon() any valid html

Breaking changes

  • Removed $tem_key from all views and Blade Components, use $field->key instead
  • If you published your view files you must compare/merge them with the new files.
  • Removed deprecated v3 methods, custom_data() and relations(), use saveFoo() instead
  • Removed $custom_data, all data is available in the $form_data property

Improved

  • Better styling for Repeater on smaller screen
  • Removed Blade UI Icon dependency
    • Icons are now plain blade files

Upgrade v5 to v6

  • Publish the new icon blade files (does not overwrite current icons)
    • php artisan vendor:publish --tag=tall-form-icons
  • Republish the config or compare/merge with your existing
    • php artisan vendor:publish --tag=tall-form-config
  • $temp_key isn't used anymore. If you published your view files you must compare/merge them with the new files.
  • Search and replace deprecated methods; custom_data() and relations(), use saveFoo() instead.
  • Search and replace any reference to $custom_data, all data is available in the $form_data property
    • Examples:
    • $this->custom_data becomes $this->form_data
    • data_get($this->custom_data, ...) becomes data_get($this->form_data, ...)
Clone this wiki locally