Laravel 表单操作 Url

Laravel Form Action Url

我不知道如何使用 Laravel 表单将数据(在 POST 中)发送到我的其他站点。

我尝试了一个 (GET) 表单:

{!! Form::open(array('url' => 'http://other.domain.com')) !!}
    <input type="text" name="test" value="something" />
    <button type="submit">Submit</button>
{!! Form::close() !!}

它停留在:mydomain:8000/mypage?test=something

但我希望这是 http://other.domain.com?test=something

有线索吗?

我想你要找的是

{!! Form::open(array('action' => 'http://other.domain.com')) !!}

我遇到的问题是 'HTML' :

<form>
 <form action='http://other.domain.com'>
   <input type="text" name="test" value="something" />
   <button type="submit">Submit</button>
 </form>
</form>

事实是,当您单击提交按钮时,它采用第一种形式。很奇怪。