php - Can't install laravelcollective/html in Laravel 5.1 -


i have problem when install laravelcollective/html in laravel 5.1 install laravelcollective/html document. first, install through composer:

composer require illuminate/html 

message: using version ~5.0 illuminate/html ./composer.json has been updated loading composer repositories package information updating dependencies (including require-dev)

but it's version 5.0 remove it.

composer remove illuminate/html 

and install version 5.1

"require": {     "laravelcollective/html": "5.1.*" } 

next, update composer terminal:

composer update 

next, add new provider providers array of config/app.php:

  'providers' => [     // ...     collective\html\htmlserviceprovider::class,     // ...   ], 

finally, add 2 class aliases aliases array of config/app.php:

  'aliases' => [     // ...       'form' => collective\html\formfacade::class,       'html' => collective\html\htmlfacade::class,     // ...   ], 

and message error:

 fatalerrorexception in providerrepository.php line 146:  class 'collective\html\htmlserviceprovider' not found 

before ran composer update, had somehow added config/app.php below , generated same error getting.

don't add below until after doing composer update.

'providers' => [     // ...     collective\html\htmlserviceprovider::class,     // ...   ],    'aliases' => [     // ...       'form' => collective\html\formfacade::class,       'html' => collective\html\htmlfacade::class,     // ...   ], 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -