Laravel面包屑为Laravel 5.4

问题描述 投票:2回答:2

我想在Laravel 5.4上安装https://github.com/davejamesmiller/laravel-breadcrumbs

上面的链接适用于Laravel 5.5。 (包版本4.x)

所以我去https://github.com/davejamesmiller/laravel-breadcrumbs/tree/3.x获取软件包版本3.x但我可以看到它建议以与安装L 5.5相同的方式安装软件包。通过:

composer require davejamesmiller/laravel-breadcrumbs

当我跑这个时,我犯了一个错误:enter image description here

任何人都可以帮助我如何安装它的版本3.x?

提前致谢!

UPD:我看到包的作者也在这里为3.x版本创建了一个单独的版本:https://github.com/maddhatter/laravel-breadcrumbs但我仍然不明白如何为Laravel 5.4安装它....

laravel-5 breadcrumbs
2个回答
1
投票

所以我自己弄清楚了。您只需运行此命令:

composer require davejamesmiller/laravel-breadcrumbs:3.*

它将安装https://github.com/davejamesmiller/laravel-breadcrumbs/tree/3.x

希望它可以帮助别人:)


0
投票

实际上,如果您使用的是其他版本,请仔细阅读下表,并根据您的Laravel版本点击链接

<table>
<thead>
<tr>
<th>Laravel Breadcrumbs</th>
<th>Laravel</th>
<th>PHP</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>5.x</strong></td>
<td>5.6</td>
<td>7.1+</td>
</tr>
<tr>
<td><a href="https://github.com/davejamesmiller/laravel-breadcrumbs/tree/4.x">4.x</a></td>
<td>5.5</td>
<td>7.0+</td>
</tr>
<tr>
<td><a href="https://github.com/davejamesmiller/laravel-breadcrumbs/tree/3.x">3.x</a></td>
<td>5.0 – 5.4</td>
<td>5.4+</td>
</tr>
<tr>
<td><a href="https://github.com/davejamesmiller/laravel-breadcrumbs/tree/2.x">2.x</a></td>
<td>4.0 – 4.2</td>
<td>5.3+</td>
</tr></tbody></table>
© www.soinside.com 2019 - 2024. All rights reserved.