【问题标题】:Laravel Breadcrumbs for Laravel 5.4Laravel 5.4 的 Laravel 面包屑
【发布时间】:2018-05-12 09:03:17
【问题描述】:

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

以上链接适用于 Laravel 5.5。 (软件包版本 4.x)

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

composer require davejamesmiller/laravel-breadcrumbs

当我运行这个时,我遇到了一个错误:

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

提前致谢!

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

【问题讨论】:

  • 也可以使用php代码生成动态面包屑here

标签: laravel-5 breadcrumbs


【解决方案1】:

其实如果你使用的是其他版本,只要仔细阅读下表,根据你的 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>

【讨论】:

    【解决方案2】:

    所以我自己想通了。你只需要运行这个命令:

    composer require davejamesmiller/laravel-breadcrumbs:3.*
    

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

    希望对某人有所帮助:)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-01-12
      • 2018-02-17
      • 2016-11-09
      • 2018-06-12
      • 1970-01-01
      • 2016-10-24
      • 2018-12-18
      相关资源
      最近更新 更多