laravel 报错htmlspecialchars() expects parameter 1 to be string, object given

翻译过来就是     期望参数1是字符串

  意思就是说变量为数组,应以数组的方式输出

  @foreach($xxx as $k=>$y)

    {{$k}}{{$y}}

  @endforeach

原文地址:https://www.cnblogs.com/junyi-bk/p/10283568.html