Class 'Form' 在 Laravel 7 中找不到
Class 'Form' not found in Laravel 7
我正在从 Laravel 5 升级到 Laravel 7。
我在我的项目中使用了很多 Form::model
。
Class 'Form' not found
我尝试安装
"laravelcollective/html": "~5.0"
我不断得到
Problem 1
- Conclusion: remove laravel/framework v7.3.0
- Conclusion: don't install laravel/framework v7.3.0
- Conclusion: don't install laravel/framework v7.2.2
- Conclusion: don't install laravel/framework v7.2.1
- Conclusion: don't install laravel/framework v7.2.0
- Conclusion: don't install laravel/framework v7.1.3
- Conclusion: don't install laravel/framework v7.1.2
- Conclusion: don't install laravel/framework v7.1.1
- Conclusion: don't install laravel/framework v7.1.0
- Conclusion: don't install laravel/framework v7.0.8
- Conclusion: don't install laravel/framework v7.0.7
- Conclusion: don't install laravel/framework v7.0.6
- Conclusion: don't install laravel/framework v7.0.5
- Conclusion: don't install laravel/framework v7.0.4
- Conclusion: don't install laravel/framework v7.0.3
- Conclusion: don't install laravel/framework v7.0.2
- Conclusion: don't install laravel/framework v7.0.1
- Conclusion: don't install laravel/framework v7.0.0
我现在有什么选择?
- 用 HTML 替换所有 Form facade ?那会很多...
- 在此新设置上再次添加一个 Form Facade
你们认为我应该做哪一个?
要支持 Laravel
7.x
,您需要安装 HTML 包的版本 6.0
。 5.x
不支持 5.8
之后的更新版本 Laravel
。更新你的 composer.json
.
"laravelcollective/html": "~6.0"
之后运行.
composer install
或者只是从命令行要求它。
composer require laravelcollective/html "~6.0"
composer require laravelcollective/html
此依赖项已从 laravel
中移除
我正在从 Laravel 5 升级到 Laravel 7。
我在我的项目中使用了很多 Form::model
。
Class 'Form' not found
我尝试安装
"laravelcollective/html": "~5.0"
我不断得到
Problem 1
- Conclusion: remove laravel/framework v7.3.0
- Conclusion: don't install laravel/framework v7.3.0
- Conclusion: don't install laravel/framework v7.2.2
- Conclusion: don't install laravel/framework v7.2.1
- Conclusion: don't install laravel/framework v7.2.0
- Conclusion: don't install laravel/framework v7.1.3
- Conclusion: don't install laravel/framework v7.1.2
- Conclusion: don't install laravel/framework v7.1.1
- Conclusion: don't install laravel/framework v7.1.0
- Conclusion: don't install laravel/framework v7.0.8
- Conclusion: don't install laravel/framework v7.0.7
- Conclusion: don't install laravel/framework v7.0.6
- Conclusion: don't install laravel/framework v7.0.5
- Conclusion: don't install laravel/framework v7.0.4
- Conclusion: don't install laravel/framework v7.0.3
- Conclusion: don't install laravel/framework v7.0.2
- Conclusion: don't install laravel/framework v7.0.1
- Conclusion: don't install laravel/framework v7.0.0
我现在有什么选择?
- 用 HTML 替换所有 Form facade ?那会很多...
- 在此新设置上再次添加一个 Form Facade
你们认为我应该做哪一个?
要支持 Laravel
7.x
,您需要安装 HTML 包的版本 6.0
。 5.x
不支持 5.8
之后的更新版本 Laravel
。更新你的 composer.json
.
"laravelcollective/html": "~6.0"
之后运行.
composer install
或者只是从命令行要求它。
composer require laravelcollective/html "~6.0"
composer require laravelcollective/html
此依赖项已从 laravel
中移除