is there an invalid argument provided for foreach?

I think you just have a mistype in your foreach

Try this

@foreach($people as $person)
    <li>{{$person}}</li>
@endforeach

Change the @ in $

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top