2016-10-23 5 views

答えて

1

私はあなたのビュー

public function show($question_id) { 

    $showQuestion=questions::findOrFail($question_id); 
    return view('questions')->with('question', $showQuestion); 
} 

ソース返すようにしようとしていると思います。自分は多分あなたが使用する必要があり、同様のものを持った後https://laravel.com/docs/5.2/views#passing-data-to-views

0

を:

return redirect('questions')->with('showQuestion', $showQuestion); 
関連する問題