一系列漂亮的 Laravel Blade 指令
创建一个 ` @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,或尚未同步最近议题。