gpt4 book ai didi

php - 在 Laravel 7 中找不到类 'Form'

转载 作者:行者123 更新时间:2023-12-03 18:15:37 27 4
gpt4 key购买 nike

我正在从 Laravel 5 升级到 Laravel 7。
enter image description here
我用了很多 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 外观?那会很多...😭
  • 在这个新设置上再次添加一个 Form Facade

  • 你们觉得我应该做哪一个?

    最佳答案

    composer require laravelcollective/html

    这个依赖从 Laravel 中移除

    关于php - 在 Laravel 7 中找不到类 'Form',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60921933/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com