solaro
V2EX  ›  PHP

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

  •  
  •   solaro · May 24, 2018 · 2629 views
    This topic created in 2999 days ago, the information mentioned may be changed or developed.

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

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

    3 replies    2018-06-01 18:21:29 +08:00
    qloog
        2
    qloog  
       May 24, 2018
    @Plumes 其实作用是一样的,只是不同的调用方式
    cncqw
        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   ·   4041 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:13 · PVG 12:13 · LAX 21:13 · JFK 00:13
    ♥ Do have faith in what you're doing.