更新时间:2022-05-08 05:34:58
我想您尝试在搜索后显示搜索结果.问题是这条线.
I guess you try to show the search results after searching. The problem is this line.
return Redirect::to('property/search', compact('properties'));
获得搜索结果后,您应该调用视图,而不是重定向.
After you get the search result you should call a view, not redirect.
return view('property.search', compact('properties'));
但是请确保您具有视图文件.
But make sure you have the view file.