Laravel 5 Class 'form' not found

前端 未结 9 654
余生分开走
余生分开走 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条回答
  • Use Form, not form. The capitalization counts.

    0 讨论(0)
  • 2020-11-29 03:20

    I have tried everything, but only this helped:

    php artisan route:clear
    php artisan cache:clear
    
    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题