Zinq zinq

Improvements and adjustments

Posted on: January 3, 2025 by Matt

^0.7.1

With the latest update to Zinq, we’ve introduced some new features and fixes to enhance your development experience. Here’s what’s new:

# New Features

# Enhanced Button Component

The Button component now supports the Livewire wire:target attribute, allowing you to explicitly define which actions trigger the button’s loading state. This provides more control and precision in your Livewire-powered projects.

# Dynamic Field Addition with Eloquent Form Builder

The Eloquent Form Builder now includes the new add method, enabling you to dynamically add fields to a form generated from an Eloquent model.

For example: If you have a Post model representing a blog post, but its content is stored in .md files on the server, your model might not include a content attribute. With the add method, you can easily add a dynamic form field for content and save it in any way you need.

 
->add(Textarea::make('content'))

Learn more about new add method on documentation page.

This flexibility makes it easier to handle non-standard data while leveraging Zinq’s powerful form-building capabilities.

# Support for Decimal Columns in Eloquent Form Builder

The Eloquent Form Builder now automatically recognizes columns with the decimal type in your Eloquent models. It will generate an appropriate input component for these attributes, simplifying the process of creating forms for models with decimal-based data.

# Introducing the Zinq Blog

We’ve launched the Zinq Blog to keep you informed about everything happening with Zinq! From new features to upcoming releases, you’ll be able to stay up to date and start leveraging the latest improvements right away.

# Fixes and Adjustments

  • Attribute Overriding in Form Components: Fixed an issue with the attribute('type', 'text') method in Form Builder components, which previously merged attributes instead of overriding them.
  • Label Alignment for Radio Buttons and Checkboxes: Improved the alignment of labels in radio and checkbox components to ensure a polished and consistent appearance.

These updates bring more flexibility, reliability, and control to your Zinq projects. Be sure to check the documentation for detailed examples and let us know how these improvements help you in your development workflow!


Newsletter

Join other developers and never miss out on new tips, tutorials and Zinq updates!