michalkortas/laravelforms
Blade form components for Laravel 7–8 that generate Bootstrap-styled inputs fast, with built-in validation error support. Includes text, select, textarea, checkbox, radio, file, date/time, color, and more, with easy model binding for values.
<x-form-text>, <x-form-select>). Ideal for rapid MVP builds or internal tools where form consistency is critical.model-key="departments.id").class="is-invalid") aligns with security and data integrity priorities.*"This Laravel package is a 10x faster way to build and maintain forms in our admin tools or user-facing workflows. Instead of spending weeks debating Bootstrap classes or debugging custom JavaScript for dropdowns, checkboxes, and inputs, we can generate consistent, validated forms with a single Blade component. For example:
<x-form-select> in 5 minutes (vs. hours with custom code).Use case: Imagine rolling out a new user profile editor or admin dashboard—this package ensures forms are pixel-perfect, validated, and ready to ship without frontend bottlenecks. Perfect for internal tools where polish matters but budgets don’t."*
*"LaravelForms solves two key pain points:
Boilerplate Hell: No more writing repetitive HTML for forms. Replace:
<div class="form-group">
<label>Email</label>
<input type="email" name="email" class="form-control" value="{{ old('email') }}">
@error('email') <span class="invalid-feedback">{{ $message }}</span> @enderror
</div>
With:
<x-form-email label="Email" name="email" :model="$user" />
Automatically handles labels, validation errors, and Bootstrap classes.
Model Binding: Seamlessly syncs with Eloquent, including nested relationships:
<x-form-select :model="$user" model-key="role.id" name="role" :options="$roles" />
No manual $user->role_id checks—just declare the relationship path.
Tradeoffs:
When to Use:
Example Workflow:
composer require michalkortas/laravelforms.<input> tags with <x-form-*> components.*"This package ensures forms look and behave consistently across the app by enforcing Bootstrap styling and validation patterns. Key benefits:
form-group, form-control), so checkboxes, selects, and text inputs match your design system.is-invalid classes), so users get clear feedback without custom CSS.Limitations:
Pitch: ‘Let’s use this for all admin forms—it’ll save us from arguing about padding or error states while keeping everything on-brand.’"*
How can I help you explore Laravel packages today?