定制 devmcc/blade-extended 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

devmcc/blade-extended

Composer 安装命令:

composer require devmcc/blade-extended

包简介

Expands the blade functionality of the Laravel framework with additional directives.

README 文档

README

Expands the blade functionality of the Laravel framework with additional directives.

Installation

Install this package with the following command from the root directory of your project:

composer require devmcc/blade-extended

ServiceProvider

After you have required this package and updated composer, add the ServiceProvider to the providers array in app/config.php

DevMcC\BladeExtended\ServiceProvider::class,

Contents

The following is a list of directives that this package adds to blade.

@block

If your project doesn't permit the use of the else statement and it's a struggle to do this with blade without writing some else-in-disguise or some hacky ternary with includes, then the @block directive might come in handy.
With this directive, you can define codeblocks, the contents of this block will simply work like everything else, with one exception and that is that you can kill this block with a @break.

@block
    @if ($results->isEmpty())
        No results!
        @break
    @endif

    // Showing all results
@endblock

@ifadd

Echoes a string whether the condition is met.

@ifadd($iNeedToEcho, 'sanitized output (")')

@ifadd($iNeedToEcho, 'unsanitized output (")', false)

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-03-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固