Untuk menginstall HTML Helper di Laravel 5 jalankan perintah

composer require laravelcollective/html

lalu buka file config/app.php
edit bagian Provider tambahkan

Collective\Html\HtmlServiceProvider::class,

edit bagian Aliases tambahkan

'Form'      => Collective\Html\FormFacade::class,
'Html'      => Collective\Html\HtmlFacade::class,

untuk melihat apakah HTML helper berhasil ditambahkan, edit view anda, lalu tambahkan

{{ Form::open(['url' => '/']) }}
{!! Form::label('User','Username :') !!}
{!! Form::text('User',null, ['class' => 'form-control']) !!}
{!! Form::close() !!}

screenhot HTML helper
contol html helper laravel 5.2

Leave a comment

Your email address will not be published. Required fields are marked *