【问题标题】:How to post from other system to laravel如何从其他系统发布到 laravel
【发布时间】:2017-06-09 16:15:13
【问题描述】:

有人连接到我的系统。当用户提交表单时,表单一系统,我必须在我的系统中获取 uesrname 的值。

<form action="user/update" method="POST">
    <input type="hidden" name="Username" id="Username" value="fazeela.ma@rapidvaluesolutions.com" />
    <input type="submit" value="Submit" />
</form>

在may laravel系统中使用了路由。

Route::post('user/update', 'Login\LoginController@test');

但这给了我一个令牌不匹配错误。

我该怎么做?

【问题讨论】:

标签: php laravel-5


【解决方案1】:

这是一个 CSRF 问题,可以通过阅读以下内容来解决:https://laravel.com/docs/5.4/csrf

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多