how to set limit in foreach loop in laravel 8 code example
Example: laravel limit foreach
@foreach ($element['subs']->slice(0, 10) as $item)
...Code
@endforeach
@foreach ($element['subs']->slice(0, 10) as $item)
...Code
@endforeach