如何在Laravel Blade中获取当前路由?
如何在Laravel Blade中获取当前路由?
这个问题已经有答案了:
我想在laravel的视图中检查当前路由是否与特定路由不相等。在Blade中我该如何做呢?
我尝试过:
@if(Route::current() != Route('places.show')){{ $order->place->name }}
@endif
admin 更改状态以发布 2023年5月24日
这个问题已经有答案了:
我想在laravel的视图中检查当前路由是否与特定路由不相等。在Blade中我该如何做呢?
我尝试过:
@if(Route::current() != Route('places.show')){{ $order->place->name }}
@endif