Laravel: array_merge(): Argument #2 is not an array error

前端 未结 7 1739
执念已碎
执念已碎 2021-02-07 02:46

Exceptions started to appear in all views, and when I try to run composer update, it always ends up with

{\"error\":{\"type\":\"ErrorException\",\"m         


        
7条回答
  •  难免孤独
    2021-02-07 03:38

    You probably just forgot to put compact('var') as the second return view argument

    return view("path.to.view", compact ('var'))

提交回复
热议问题