Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

@foreac laravel

@foreach ($users as $user)
    <p>This is user {{ $user->id }}</p>
@endforeach

@forelse ($users as $user)
    <li>{{ $user->name }}</li>
@empty
    <p>No users</p>
@endforelse
 
PREVIOUS NEXT
Tagged: #laravel
ADD COMMENT
Topic
Name
6+4 =