Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel blade dynamic class loop foreach

<x-post-card :post="$post" class="{{ $loop->iteration < 3 ? 'col-span-3' : 'col-span-2' }}" />
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #blade #dynamic #class #loop #foreach
ADD COMMENT
Topic
Name
3+2 =