2016-10-23 36 views
0

我試圖在訪問我的網址:http://localhost/app/public/questions/1Laravel HTTP狀態碼 「1」 是無效的錯誤

我的路線

$this->get('/questions/{question_id}','[email protected]'); 

我控制器

public function show($question_id) { 

    $showQuestion=questions::findOrFail($question_id); 
    return redirect('questions',compact('showQuestion')); 
} 

出於某種原因我得到這個錯誤

InvalidArgumentException in Response.php line 458: 
The HTTP status code "1" is not valid. 

可能是什麼問題?

回答

0

後,也許你應該使用:

return redirect('questions')->with('showQuestion', $showQuestion); 
相關問題