Concept

Laravel for in Blade directive

The @for directive in Laravel's Blade templating engine is used to loop over a range of values. It takes two arguments: the starting and ending values of the loop. Here is an example of how it works:

@for (i = 0; i < 5; i++) <p>The current value is {{ i }}</p> @endfor

0

1

Updated 2025-03-18

References


Tags

Object-Oriented Programming (OOP) Languages

Object-Oriented Programming

Programming Language Paradigms

General programming languages

Computing Sciences