菜单

Custom Blade Directives in Laravel 5

2016年05月2日 - Laravel

Step 1: Register a custom Blade directive:

Custom Link';
         });
     }
    ...
Step 2: Use your custom Blade directive:



@shout('this is my custom blade directive!!')

@customLink

Outputs:

THIS IS MY CUSTOM BLADE DIRECTIVE!!
Custom Link

发表评论

电子邮件地址不会被公开。 必填项已用*标注