首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
PHP
laravel 5.6 中 response()->view() 和 view()的区别是啥 ?
solaro
·
2018 年 5 月 24 日
· 2426 次点击
这是一个创建于 2811 天前的主题,其中的信息可能已经有所发展或是发生改变。
我用 return response()->view 无法正确加载视图模板
用 return view()就可以,真的见鬼了
view
response
return
载视图
3 条回复
•
2018-06-01 18:21:29 +08:00
1
Plumes
2018 年 5 月 24 日
https://laravel.com/docs/5.6/responses#other-response-types
2
qloog
2018 年 5 月 24 日
@
Plumes
其实作用是一样的,只是不同的调用方式
3
cncqw
2018 年 6 月 1 日
@
qloog
文档说得很清楚,你在哪里看到作用是一样的,很像我一个不去了解就发表意见的同事,很服
Of course, if you do not need to pass a custom HTTP status code or custom headers, you should use the global view helper function.
关于
·
帮助文档
·
自助推广系统
·
博客
·
API
·
FAQ
·
Solana
·
961 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 20ms ·
UTC 19:52
·
PVG 03:52
·
LAX 11:52
·
JFK 14:52
♥ Do have faith in what you're doing.
❯