V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
solaro
V2EX  ›  PHP

laravel 5.6 中 response()->view() 和 view()的区别是啥 ?

  •  
  •   solaro · 2018-05-24 15:47:50 +08:00 · 2100 次点击
    这是一个创建于 2154 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我用 return response()->view 无法正确加载视图模板

    用 return view()就可以,真的见鬼了

    3 条回复    2018-06-01 18:21:29 +08:00
    Plumes
        1
    Plumes  
       2018-05-24 16:19:54 +08:00
    qloog
        2
    qloog  
       2018-05-24 17:47:34 +08:00
    @Plumes 其实作用是一样的,只是不同的调用方式
    cncqw
        3
    cncqw  
       2018-06-01 18:21:29 +08:00
    @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   ·   我们的愿景   ·   实用小工具   ·   1012 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:24 · PVG 06:24 · LAX 15:24 · JFK 18:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.