百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

laravel-blade-directives

> 后端框架
开源

一系列漂亮的 Laravel Blade 指令

848 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

一系列漂亮的 Laravel Blade 指令

Laravel Blade 指令集合 一个包含各种 Laravel Blade 指令的集合。

@script

创建一个 ` @endpushonce


Include pushes with standard `@stack` directive:

刀片 @stack('js')


### @routeis

Checks if the current route name is equal to the given parameter. You can use a wildcard like `blog.post.*`.

刀片 @routeis('webshop.checkout') 只在结账时执行某些操作 @endrouteis


### @routeisnot

Checks if the current route name is not equal to the given parameter. You can use a wildcard like `blog.post.*`

刀片 @routeisnot('webshop.checkout') 只有当这不是结账时才做某事 @endrouteisnot


### @instanceof

Checks if the first parameter is an instance of the second parameter.

刀片 @instanceof($user, 'App\User') User 是 App\User 的实例 @endinstanceof


### @typeof

Checks if the parameter is of a certain type.

刀片 @typeof($text, 'string') 文本是一个字符串 @endtypeof


### @repeat

Repeat something a specified amount of times.

刀片 @repeat(3) 迭代 #{{ $iteration }} @endrepeat

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPbladedirectiveslaravellaravel-package

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架