Home
Sign Up
Sign In
V2EX
›
PHP
laravel 5.6 中 response()->view() 和 view()的区别是啥 ?
solaro
·
May 24, 2018
· 2632 views
This topic created in 3002 days ago, the information mentioned may be changed or developed.
我用 return response()->view 无法正确加载视图模板
用 return view()就可以,真的见鬼了
view
response
return
载视图
3 replies
•
2018-06-01 18:21:29 +08:00
1
Plumes
May 24, 2018
https://laravel.com/docs/5.6/responses#other-response-types
2
qloog
May 24, 2018
@
Plumes
其实作用是一样的,只是不同的调用方式
3
cncqw
Jun 1, 2018
@
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.
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
3580 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms ·
UTC 05:04
·
PVG 13:04
·
LAX 22:04
·
JFK 01:04
♥ Do have faith in what you're doing.
❯