Zinq zinq

The power of Form Builder

Posted on: December 18, 2024 by Matt

^0.7.0

We’re excited to unveil the Form Builder, a powerful new tool designed to minimize the time spent on creating forms. Whether you’re building simple or complex forms, this first version of the Form Builder is packed with functionality to drastically reduce implementation time while maintaining flexibility and customization.

# What Is the Form Builder?

At its core, the Form Builder is a feature that helps developers create forms with ease and efficiency. It provides two powerful ways to build forms:

  • Manual Form Creation: Using dedicated form components to define your form structure.
  • Automatic Form Generation: Leveraging Eloquent models to generate complete forms with just one line of code.

Under the hood, every form component is a normal Zinq component, meaning you have access to the full range of configuration and customization options.

# Custom Form Builder: Total Control, Simplified

If you prefer to design forms manually, the Form Builder provides an intuitive and flexible approach. Simply define your form’s structure using Zinq’s dedicated form components, and you’re ready to go.

Learn More about Custom Form Builder on dedicated documentation page.

This method is perfect for developers who need precise control over their forms while still benefiting from the speed and consistency of reusable components.

# Eloquent Form Builder: Magic with One Line of Code

For maximum efficiency, the Eloquent Form Builder takes things to the next level. Instead of defining each form field manually, you can generate a complete form based on your Eloquent model with a single line of code:

 
use Mattbit\Zinq\Form\EloquentForm;

...

return EloquentForm::make(Customer::class);

Learn More about Eloquent Form Builder on dedicated documentation page.

With this tool, creating forms is no longer a tedious task - it’s almost magical.

The Zinq Form Builder is just getting started, and we can’t wait to see how it transforms the way you build forms. Be sure to explore the documentation for detailed examples and share your feedback - we’re always listening!


Newsletter

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