오류를 해결할 수있는 리소스를 찾을 수 없습니다. 다음 내용으로 내보기 :업데이트 된 작곡가 laravel 5.5.21 버전에서 'Html'클래스를 찾을 수 없습니다.
Html::link('http://test.com')
나는 Class 'Html' not found
오류가 발생합니다. 내 laravel 버전은 5.5.21입니다.
오류를 해결할 수있는 리소스를 찾을 수 없습니다. 다음 내용으로 내보기 :업데이트 된 작곡가 laravel 5.5.21 버전에서 'Html'클래스를 찾을 수 없습니다.
Html::link('http://test.com')
나는 Class 'Html' not found
오류가 발생합니다. 내 laravel 버전은 5.5.21입니다.
laravel 5. *를 사용하는 사람은 누구나 illuminate/html
패키지가 폐기되었으므로 laravelcollective/html
을 사용해야합니다. 사용하지 마십시오.
composer.json
파일에 다음 코드를 포함해야
"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,
]
지금은 작업입니다. 이후에 캐시를 지우려면 config 캐시를 실행해야합니다. – 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