php - Javascript window.open() 但在 Laravel
问题描述
我正在开发一个网站,在给定时刻,我需要将用户重定向到传递'_system'
参数的 url。我知道这在 javaScript 中是类似的window.open('xxx.com', '_system')
,但我想知道是否有办法使用 Laravel 及其redirect()
响应助手来做到这一点以及如何做到这一点。
解决方案
您只需将外部 url 传递给该redirect()
方法,它将重定向到该 url。
例如:return redirect('https://www.google.com');
推荐阅读
- javascript - HTML 搜索框
- snowflake-cloud-data-platform - 命令“Copy into@STAGE”生成一个名称为当前日期的文件
- python - 我需要将一个整数附加到python中的图像
- python - Pandas Dataframe 根据条件从前几行中减去值
- laravel - 在 laravel 中 request key 到 Request Facade 的服务容器的绑定是在哪个文件中发生的?
- html - CSS - 幻影边框
- python-3.x - 如何删除电路板周围的部分图像 - opencv
- python-3.x - 自定义层中构建的继承 (super().build(input_shape))
- r - 将作为因素上传的日期转换为日期
- javascript - 我真的被这个递归函数问题困住了,我需要返回对象中计数最多的元音