laravel - Laravel 无法提交表单
问题描述
我不知道为什么以及何时发生。当显示提交表单错误时,我的站点中的任何内容Parse error: syntax error, unexpected 'text' (T_STRING), expecting ',' or ')'
都可以。在此链接中查看错误:单击提交。我该如何解决
<form method="post" action="{{ Route('pay')}}">
{{ csrf_field() }}
<input type="hidden" name="offerid" value="1"/>
<button type="submit" class="btn btn-primary btn-lg col-lg-12 col-sm-12 col-xs-12" role="button">submit</button>
</form>
提交所有表单时显示此错误,例如 laravel 登录表单和....
解决方案
您不应更改 VENDOR 文件夹中的任何文件。
回滚您的更改。
或者复制我的默认代码:
$this->setContent(
sprintf('<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="0;url=%1$s" />
<title>Redirecting to %1$s</title>
</head>
<body>
Redirecting to <a href="%1$s">%1$s</a>.
</body>
</html>', htmlspecialchars($url, ENT_QUOTES, 'UTF-8')));
推荐阅读
- angular - 角度辅助路由在模块内不起作用
- docker - FFmpeg concat 产生不良视频
- angular - 未捕获的类型错误:无法在 getOriginalError 处读取未定义的属性“ngOriginalError”-当 httpClient 返回字符串时
- twitch - Twitch API:是否可以检索当前观看流媒体的人的设备 ID?
- python-3.x - 标准化 PC 的 KMeans 聚类图
- selenium - Appium Parallel Test Execution 删除一个设备的驱动程序,显示会话已终止或未启动
- c# - FakeItEasy:根据表达式返回不同的对象
- python - 在将对象附加到列表时删除引号
- haskell - 如何检查一个 IO() 是否等价于另一个 IO()?
- python - 日志队列和多处理问题