Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Easy Laravel Form

Easy Laravel Form Laravel Package

formfy/easy-laravel-form

Laravel form generator for building and rendering forms quickly. Define fields via a DBFormBuilder class, bind models, handle validation errors from the session, customize field options (text/select), and set submit labels, then render in Blade with minimal code.

View on GitHub
Deep Wiki
Context7

Formfy is a laravel package for easy form creation.

Frequently asked questions about Easy Laravel Form
How do I install and set up Formfy Easy Laravel Form in my Laravel project?
Install via Composer with `composer require formfy/easy-laravel-form`. Then extend the `DBFormBuilder` class in your form class (e.g., `StudentForm`) and define fields using methods like `addField('text', 'name', 'Label')`. Render the form in Blade with `{!! $form->render() !!}`.
Does this package support Laravel’s validation errors from the session?
Yes, the package automatically integrates with Laravel’s `MessageBag` session errors. If validation fails, errors are displayed next to the relevant fields without manual intervention. Check the constructor example in the README for implementation.
Can I bind an Eloquent model to prefill form fields?
Absolutely. Pass an Eloquent model instance to the form constructor, and the package will automatically populate the form fields with the model’s attributes. This is ideal for edit forms in CRUD applications.
What Laravel versions does Formfy Easy Laravel Form support?
The package is designed for modern Laravel versions (likely 8+). Always verify compatibility by checking the `composer.json` constraints or the GitHub repository for updates, as versioning details are minimal in the current README.
How do I customize field attributes like placeholders or validation rules?
Use the fluent API to pass an array of attributes to `addField()`. For example, `addField('text', 'email', 'Email', ['placeholder' => 'user@example.com', 'class' => 'form-control'])` supports placeholders, classes, and other HTML attributes.
Will this package work with multi-step forms or conditional fields?
The package is currently optimized for simple forms. Multi-step forms or dynamic conditional fields would require custom logic or extensions, as the package lacks built-in support for these scenarios. Test thoroughly if your use case is complex.
Is there a way to extend or add custom field types beyond text/select?
The package uses a method-chaining approach for fields, but extending it for custom types (e.g., date pickers, checkbox groups) would require subclassing `DBFormBuilder` or modifying the core logic. No official documentation exists for this yet.
How does Formfy handle file uploads or rich text editors?
The package does not natively support file uploads or WYSIWYG editors. You’d need to manually integrate these fields using standard Laravel file handling or third-party packages like `laravel-filemanager` and append them to the form output.
Can I use this package with Livewire or Inertia.js for SPAs?
The package is Blade-centric and assumes server-side rendering. For Livewire or Inertia, you’d need to manually adapt the form logic to work with Alpine.js or React/Vue components, as the package doesn’t provide frontend-agnostic APIs.
What are the alternatives to Formfy Easy Laravel Form for Laravel form generation?
Consider `laravelcollective/html` for basic forms, `spatie/laravel-form-builder` for more advanced features, or `livewire/tailwind` for reactive forms. For headless setups, frameworks like Inertia.js or API-driven form builders may be better fits.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope