1
を返していない私はこれをクリックした後、ユーザーの詳細を表示する必要があり、ボタン持ちリクエスト何
Route::get('/show', '[email protected]');
とコントローラを
public function show(Request $request)
{
$user=User::with('reports')->where('id',$request->id)->first();
return view('index')->with('user',$user);
}
問題は$request->id
リターンの何物でもありません?なぜこれはできないのですか?解決策は何ですか?
[OK]をChay22 @ htmlの最初 – Chay22
を学ぶ必要があります。ありがとう。 – Steve