【发布时间】:2017-05-24 14:04:58
【问题描述】:
if($listing != null) {
return \Response::json($listing);//return propertyees matching the search parameters
} else {
return \Response::json(array(["message"=>"Sorry no properties found matching your search criteria. Please try again."]),200);
}
以 json 格式返回视图
【问题讨论】:
-
我真的不知道您想要完成什么以及您已经尝试过什么。你能说得更具体点吗?
-
为了给您一个很好的答案,如果您还没有看过How to Ask,它可能会对我们有所帮助。如果您可以提供minimal reproducible example,它可能也很有用。