我找不到資源來糾正我的錯誤。我認爲有以下片段:更新後的作曲家laravel 5.5.21版本未找到Class'Html'錯誤。
Html::link('http://test.com')
我得到的Class 'Html' not found
錯誤。我的laravel版本是5.5.21。
我找不到資源來糾正我的錯誤。我認爲有以下片段:更新後的作曲家laravel 5.5.21版本未找到Class'Html'錯誤。
Html::link('http://test.com')
我得到的Class 'Html' not found
錯誤。我的laravel版本是5.5.21。
任何人使用laravel 5. *必須使用laravelcollective/html
,因爲包illuminate/html
被放棄,您應該避免使用它。
您composer.json
文件應包含以下代碼需要部分(如我使用laravel 5.2它將被提及爲5.2)
"laravelcollective/html": "5.2.*"
運行composer update
config/app.php
應包含供應商陣列下面的代碼:
'providers' => [
Collective\Html\HtmlServiceProvider::class,
]
別名應該包含:
'aliases' => [
'Form' => Collective\Html\FormFacade::class,
'HTML' => Collective\Html\HtmlFacade::class,
]
它現在是工作。在這之後,它應該運行配置緩存來清除緩存。 – user2552863
種類重複 - https://stackoverflow.com/questions/44395822/error-class-html-not-found-laravel-5-4 –
可能重複的錯誤類「HTML」找不到 - Laravel 5.4](https://stackoverflow.com/questions/44395822/error-class-html-not-found-laravel-5-4) –
這是5.4的答案而不是5.5.21 – user2552863