How to Install Illuminate/Html In Laravel 5

By : PHPErrorCode October 12, 2017 164 Views laravel

You know that, How to use a Form or HTML class in the Laravel project?. If no, you are in the right place because, To create most of the website, you need to use HTML form. so you can used it in your website with 'laravelcollective/html' laravel 5.5 library.

If you find the error of this ( `HTML` or `FORM` class not found ) so that means you did not use laravelcollective/html classes library, So you have to use that library. in this library instoll in your website so use below step.

Step 1: Install

follow below Any one command to install laravelcollective/html library in your laravel web application.

composer require "laravelcollective/html":"^5.5.0"

Laravel 5.4

composer require "laravelcollective/html":"^5.4.0"

Laravel 5.3

composer require "laravelcollective/html":"^5.3.0"

Laravel 5.2

composer require "laravelcollective/html":"^5.2.0"

Laravel 5.1

composer require "laravelcollective/html":"^5.1.*"

Laravel 5.0

composer require "laravelcollective/html":"^5.0.*"

Step 2: Configuration

After install, Go to this path config/app.php and add below lone

'providers' => [

    //========

    Collective\Html\HtmlServiceProvider::class,

    //========

  ],

'aliases' => [

    //========

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

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

    //========

  ],

After added above providers nad aliases, you have to check on your laravel project.

I hope it can help you in your (HTML` or `FORM` class not found ) error.

thanks