Find us on facebook

Apr 26, 2015

Using laravelcollective/html Package in laravel 5

Add following code to composer.json
"require": {
"laravelcollective/html": "5.0.*"
},

Install composer into project folder

In CLI type following command and hit enter

php composer.phar update laravelcollective/html

In config/app.php add following

'providers' => [
    // ...
    'Collective\Html\HtmlServiceProvider',
    // ...
  ],

'aliases' => [
    // ...
      'Form' => 'Collective\Html\FormFacade',
      'Html' => 'Collective\Html\HtmlFacade',
    // ...
  ],


No comments:

Post a Comment