我对laravel很陌生,我不能下载对laravel/html的依赖.我用的是拉拉5.5.13
我想要求laravelcollective/html
然而,我面临以下问题。
composer require "laravelcollective/html:5.2.*",我听到下面提到的(类似地,当我运行composer更新时):
C:\Users\MALULEKE\Desktop\lara_proj\shops>composer require "laravelcollective/html:5.2.*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package laravelcollective/html could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
C:\Users\MALULEKE\Desktop\lara_proj\shops>composer require "laravelcollective/html:5.2.*"下面是我的composer.json相对于我的项目的工作(不是来自作曲家/漫游,我甚至不确定它是我必须使用的,请帮助)
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.0.0",
"fideloper/proxy": "~3.3",
"laravel/framework": "5.5.*@dev",
"laravel/tinker": "~1.0",
"laravelcollective/html":"~5.3.@dev"
},
"require-dev": {
"filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~6.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
}
}发布于 2020-07-29 03:18:51
尝试运行composer require laravelcollective/html,它将为您安装最新版本的LaravelCollective包。
发布于 2017-10-19 08:35:48
我已经决定使用AngularJS作为我的前端。
请注意,此解决方案可能不适合每个人,使用此解决方案,将来可能会出现问题,因为需要其他编写器需求,例如需要我所需的身份验证依赖关系。
https://stackoverflow.com/questions/46468098
复制相似问题