php - 根据 Laravel 中的 url 跳过导航栏
问题描述
还使用 Auth System 与 laravel 一起工作。我有以下 app.blade.php 文件
<!-- @guest -->
<main class="py-4">
@yield('content')
</main>
<!-- @else -->
<main class="py-4">
@include('partials._nav')
@yield('content')
@include('partials._footer')
</main>
@endguest
</div>
对于以下网址
http://localhost:8000/
我的 web.php 是这样的
Route::get('/', [
'uses' => 'TopicController@index',
'as' => 'welcome',
]);
但现在我需要跳过@include('partials._nav')
上面唯一的 url (http://localhost:8000/) 并且需要在 Auth 条件下显示其他 url。我怎么能管理这个?
解决方案
推荐阅读
- google-bigquery - 检查 BigQuery 中查询使用的槽数
- r - 名称对应于现有函数名称的函数参数的默认值
- javascript - 从命令行运行基于 DOM 的 Javascript
- javascript - 在 jQuery UI 模式对话框上锁定 Kendo UI DropDownTree 过滤器
- build - 如何使用“-fPIC”标志重新编译 ntl 和 gmp 库并将 HELib 设为共享库以及对 func(std::ostream&) 错误的未定义引用
- java - 硬件和操作系统对 Maven 构建速度的影响
- python - python中是否有类似的功能,例如带有重试选项的robocopy?
- mysql - MySQL - 计算未清项目并从不同表中获取日期
- javascript - 如何修复删除下拉框中的元素(Materialize)
- powerbi - 希望在同一行中获取对两个单独问题有答案的实体的 ID 计数 - Power BI