承接 poldixd/laravel-blade-repeat 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

poldixd/laravel-blade-repeat

Composer 安装命令:

composer require poldixd/laravel-blade-repeat

包简介

README 文档

README

Blade directive for repeating content for Laravel 9.x and Laravel 10.x and PHP >= 8.1

Installation

composer require poldixd/laravel-blade-repeat

Usage

@repeat(3)
	<div>Repeat me three times.</div>
@endrepeat

Output:

<div>Repeat me three times.</div>
<div>Repeat me three times.</div>
<div>Repeat me three times.</div>

You can use the $iteration variable inside the loop for displaying the actual iteration count:

@repeat(3)
	<div>Repeat me three times. I'am number #{{ $iteration }}</div>
@endrepeat

Output:

<div>Repeat me three times. I'am number #1</div>
<div>Repeat me three times. I'am number #2</div>
<div>Repeat me three times. I'am number #3</div>

Changelog

Please see CHANGELOG.

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固