laravelcollective/html has not been updated for Laravel 11, but there’s a community-maintained fork that continues support for the latest Laravel versions.
You can safely use:
"rdx/laravelcollective-html": "^6.7"
This package is a drop-in replacement for the original laravelcollective/html package and fully supports Laravel 11+.
composer require rdx/laravelcollective-html
You don’t need to change your existing code. The namespace and aliases remain the same:
In config/app.php:
'providers' => [
Collective\Html\HtmlServiceProvider::class,
],
'aliases' => [
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
],
In your Blade files:
{!! Form::open(['route' => 'users.store']) !!}
{!! Form::label('name', 'Name:') !!}
{!! Form::text('name') !!}
{!! Form::close() !!}