Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

@foreac laravel

@if(count($posts) > 1)
    @foreach($posts as $post)
        <h2><a href="/posts/{{$post->id}}">{{$post->title}}</a></h2>
    @endforeach
@else
    </p>no posts found</p>
@endif
 
PREVIOUS NEXT
Tagged: #laravel
ADD COMMENT
Topic
Name
2+7 =