Fastest Web Hosting

laravel 5 class form not found

0 votes
asked Nov 4, 2016 in Laravel by punnet (400 points)

I have added "illuminate/html": "5.*" to composer.json and ran "composer update".

 - Installing illuminate/html (v5.0.0)
    Loading from cache

I ran this command in the root of the website. I modified the composer.json file in /root/.composer.. and in the root of the project and neither have made a difference.

This downloaded the class and it seemed to install. I have added the following to config/app.php

 'Illuminate\Html\HtmlServiceProvider', 

    'Form'      => 'Illuminate\Html\FormFacade',
    'Html'      => 'Illuminate\Html\HtmlFacade',

I think i have an idea what is wrong, but i dont know how to fix it. My install is in '/var/www/website'. I have checked the file path and the Html folder does not exist.

"/var/www/website/vendor/laravel/framework/src/Illuminate/Html"

i was able to find the class files but in a different directory.

"/var/www/website/vendor/illuminate/html"

I manually copied the files over to the main laravel illuminate/html folder, but this hasn't worked either.

1 Answer

0 votes
answered Nov 7, 2016 by puneet

1). Run composer update

2). Open a config file config/app.php and add service providers and alias:

Illuminate\View\ViewServiceProvider::class,
Illuminate\Html\HtmlServiceProvider::class,

Job Board

TechnicalSharp is a technical community of developers where they are sharing their knowledge and solutions and against it they are getting the score point which help them to make profile strong which is under eyes on MNC's
...