laravel-collective-html maintained by prabowosd
Description
HTML and Form Builders for the Laravel Framework (Laravel 10-13 compatible).
Author
Last update
2026/05/27 07:13
(dev-main)
License
Downloads
4 908
Laravel Collective HTML
This is a fork of the original LaravelCollective/html package, updated to support Laravel 11, 12, and 13 and PHP 8.2+ (including PHP 8.4).
The namespaces have been kept as Collective\Html to maintain compatibility with existing projects that use the original package.
Installation
You can install this package via composer:
composer require prabowosd/laravel-collective-html
Documentation
For full documentation, please refer to the original Laravel Collective website: https://laravelcollective.com/docs/6.x/html
Quick Start
Form Open
{!! Form::open(['url' => 'foo/bar']) !!}
//
{!! Form::close() !!}
Label
{!! Form::label('email', 'E-Mail Address') !!}
Text, Text Area, Password & Hidden Fields
{!! Form::text('username') !!}
{!! Form::textarea('description') !!}
{!! Form::password('password') !!}
{!! Form::hidden('invisible', 'secret') !!}
Checkboxes and Radio Buttons
{!! Form::checkbox('name', 'value') !!}
{!! Form::radio('name', 'value') !!}
Drop-Down Lists
{!! Form::select('size', ['L' => 'Large', 'S' => 'Small']) !!}
Buttons
{!! Form::submit('Click Me!') !!}
License
The Laravel Collective HTML package is open-sourced software licensed under the MIT license.