5

我正在从 Laravel 5 升级到 Laravel 7。

在此处输入图像描述

Form::model在我的项目中使用了很多。

找不到类“表格”

我试图安装

“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

我现在有什么选择?

  1. 用 HTML 替换所有 Form 外观?那会很多...
  2. 在这个新设置上再次添加表单外观

大家觉得我应该做哪一个?

4

2 回答 2

19
composer require laravelcollective/html

这个依赖从 laravel 中移除

于 2020-03-30T00:09:40.530 回答
10

要支持Laravel 7.x,您需要安装6.0HTML 包的版本。5.x不支持较新版本的Laravelafter 5.8。更新您的composer.json.

"laravelcollective/html": "~6.0"

那次跑完之后。

composer install

或者只是从命令行中要求它。

composer require laravelcollective/html "~6.0"
于 2020-03-29T23:56:40.950 回答