Posted: 30-03-2019

Blade Even Odd loop Flags

Blade Even Odd loop Flags

Laravel 5.8.5  add even and odd Boolean flags in the Blade loop variable

Now you can use:

$loop->even  or  $loop->odd
Instead of
$loop->iteration % 2