所以,我开始与laravel。尝试将表单发布到同一页面。 这里是我到目前为止,Laravel发布:路由问题
routes.php文件
Route::get('/', '[email protected]');
Route::group(array('before' => 'csrf'), function() {
Route::post('contactus', '[email protected]');
});
hello.php
<?php echo Form::open(array('action' => '[email protected]'))?>
input fields here
<?php echo Form::close() ?>
的HomeController
public function showWelcome()
{
return View::make('hello');
}
public function sendEmail()
{
print_r($_POST);exit;
}
问题:表被张贴到URL 公共/联系我们
有人能指出其真正愚蠢的事情,我在做什么?
“Laravel岗位:总新手” 不是一个问题,请大家指正与meaningfull标题你的问题。 – mpm
更新了问题。 –