R

Ravina • 3.96K Points
Extraordinary

Q. Which Blade directive is used for loops?

  • (A) @foreach
  • (B) @loop
  • (C) @repeat
  • (D) @forloop
  • Correct Answer - Option(A)
  • Views: 15
  • Filed under category Laravel
  • Hashtags:

Explanation by: Ravina

@foreach is used to loop over arrays or collections in Blade templates.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.