code of 1st error :
@extends('layouts.app')
@section('content')
<h1> posts</h1>
@if(count($posts)>1)
@foreach($posts as $post)
<div class="well">
<h3></h3>
</div>
@endforeach
@else
<p> no posts found</p>
@endif
@endsection
and image also attached . [enter image description here][1] after i follow the instructions of the chrome this occurs and code will be .. even i have removed the @ and try if() like this .. code 2 ; @extends('layouts.app')
@section('content')
<h1> posts</h1>
@if(count($posts ?? '')>1)
@foreach($posts ?? '' as $post)
<div class="well">
<h3></h3>
</div>
@endforeach
@else
<p> no posts found</p>
@endif
@endsection
[1]: https://i.stack.imenter code here
gur.com/21weC.png
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2VzG5vP
via IFTTT
Aucun commentaire:
Enregistrer un commentaire