Laravel 5 Class 'form' not found

前端 未结 9 777
余生分开走
余生分开走 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:23

    Begin by installing this package through Composer. Run the following from the terminal:

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

    Next, add your new provider to the providers array of config/app.php:

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

    Finally, add two class aliases to the aliases array of config/app.php:

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

    SRC:

    https://laravelcollective.com/docs/5.3/html

提交回复
热议问题