Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

foreach loop in blade code

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
  
<ul>
@foreach ($users as $user)
    <li>ID: {{ $user['id'] }}, NAME: {{ $user['name'] }}</li>
@endforeach
</ul>
  
</body>
</html>
Source by www.itsolutionstuff.com #
 
PREVIOUS NEXT
Tagged: #foreach #loop #blade #code
ADD COMMENT
Topic
Name
4+8 =