poldixd/laravel-blade-repeat

3,332
Install
composer require poldixd/laravel-blade-repeat
Latest Version:1.1.0
PHP:^8.2
Laravel:11 · 12 · 13
License:MIT
Last Updated:Jun 30, 2026
Links: GitHub  ·  Packagist
Maintainer: poldixd

poldixd/laravel-blade-repeat

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.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released PHP Laravel License
1.1.0 ^8.2 ^11.0|^12.0|^13.0 MIT
1.0.0 ^8.2 ^11.0|^12.0 MIT
0.3 ^8.2 ^10.0|^11.0 MIT
0.2.0 ^8.1 ^9.0|^10.0 MIT
0.1.1 ^8.0 ^9.0 MIT