Laravel 5 Class 'form' not found

前端 未结 9 774
余生分开走
余生分开走 2020-11-29 02:42

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

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


        
9条回答
  •  臣服心动
    2020-11-29 03:03

    Just type the following command in terminal at the project directory and installation is done according the Laravel version:

    composer require "laravelcollective/html"
    

    Then add these lines in config/app.php

    'providers' => [
        // ...
        Collective\Html\HtmlServiceProvider::class,
        // ...
    ],
    
    'aliases' => [
        // ...
       'Form' => Collective\Html\FormFacade::class,
       'Html' => Collective\Html\HtmlFacade::class,
        // ...
    ],
    

提交回复
热议问题