rdx/laravelcollective-html
Adds LaravelCollective HTML/Form helpers to Laravel apps, with service provider setup and familiar Form/Html facades for generating inputs, labels, and other form elements. Useful when you want the classic Laravel form builder experience back.
<form>, <input>, <select>) into reusable, maintainable components, reducing boilerplate in views.@form, @text, @select, etc.), making it a natural fit for existing Laravel applications.rdx/laravelcollective-html), and the package requires minimal configuration (only service provider registration in config/app.php). No database migrations or schema changes are needed.FormRequest or manual validation) remains independent. This allows for seamless integration with existing validation logic.@props).Why Not Native Blade?
Form::open(), Form::text() in older Laravel versions)?Maintenance and Support
Modern Alternatives
Migration Path
Long-Term Viability
@props, slots).Illuminate\Http\Request).collective/html (this package is a fork; ensure no conflicts with the original).@form instead of <form>).<input type="text"> with @text).Form::open() → @form).FormRequest) remains unchanged. The package only affects the view layer.@form, @text, @select, etc. Verify these don’t conflict with custom directives in the application.@auth, @foreach).FormRequest validation rules (e.g., required, email) will work unchanged.<img>, <script>), ensure the package’s output aligns with Laravel Mix/Vite’s asset pipelines.rdx/laravelcollective-html to composer.json and run composer install.config/app.php:
Rudie\Laravelcollective\HtmlServiceProvider::class,
@text for inputs).@text to include Tailwind classes:
@text('name', 'User Name', ['class' => 'form-input'])
laravelcollective/html repo for related insights.README.md.How can I help you explore Laravel packages today?