solaro
V2EX  ›  PHP

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

  •  
  •   solaro · May 24, 2018 · 2743 views
    This topic created in 3110 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
    qloog
    May 24, 2018
    2
    @Plumes 其实作用是一样的,只是不同的调用方式
    cncqw
    cncqw
    Jun 1, 2018
    3
    @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   ·   Privacy   ·   Solana   ·   2053 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 13:44 · PVG 21:44 · LAX 05:44 · JFK 08:44
    ♥ Do have faith in what you're doing.