我ReportController 指數被路由作爲POST只有Laravel:重定向到另一個控制器,它需要POST變量
public function index() // must have start, end, client
{
$start = Input::get('start'); // <<< This are POST variables
$end = Input::get('end'); // <<< This are POST variables
$client = Input::get('client'); This are POST variables
db request... output view..
}
當我點擊 「刪除行」,其發佈的信息以
public function deleteRow()
{
db request -> delete();
//How do I go back to index controller and pass same $_POST['start'],$_POST['end'],$_POST['client']
}
如何返回到索引控制器並傳遞相同的$ _POST ['start'],$ _ POST ['end'],$ _ POST ['client']?
http://laravel.com/docs/requests#old-input –