我试图在Laravel 6.2中安装作曲家,要求“ laravelcollective / html”:“ ^ 5.4.0” 。 composer.json是:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<section>
<div class="container-fluid pt-70 pb-0">
<div class="container">
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<?php foreach ($gallery_imgs as $img):?>
<div class="carousel-inner">
<div class="item">
<img src="<?php echo base_url(); echo $img['thumbnail_url']; ?>" alt="Los Angeles" style="width:30%;">
</div>
</div>
<?php endforeach;?>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</section>
但是,出现以下错误:
"require": {
"php": "^7.2",
"fideloper/proxy": "^4.0",
"laravel/framework": "^6.2",
"laravel/tinker": "^1.0"
是因为该命令不支持最新版本的laravel吗?因为我发现的最新命令是v5.8。如果是,我有什么办法可以将laravel 6.2版本替换为旧版本?
答案 0 :(得分:0)
如果您需要最新版本,请尝试运行
composer require laravelcollective/html
答案 1 :(得分:0)
使用6.0版本,laravel的最新版本有很多重大更改,因此也请注意其文档。要安装最新版本,只需运行作曲家require laravelcollective/html