Home > Backend Development > PHP Tutorial > laravel5.0下在控制器中使用redirect跳转会携带额外的相应头信息

laravel5.0下在控制器中使用redirect跳转会携带额外的相应头信息

WBOY
Release: 2016-06-23 13:01:07
Original
1225 people have browsed it



跳转过程中,会显示这样一句话:
HTTP/1.0 302 Found Cache-Control: no-cache Date: Mon, 13 Jun 2016 05:22:05 GMT Location: http://narutos.laravel/admin/pricemod/narutos/admin Redirecting to http://narutos.laravel/admin/pricemod/narutos/admin.

刚入手这个框架,按照官方文档这样进行的页面跳转,不知道哪里有问题,希望大神帮帮忙。


回复讨论(解决方案)

已找到问题所在,并非是redirect函数的问题,而是使用的back()函数跳转出现的额外信息,谢谢。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template