Ich versuche, eine Suche nach ID zu tun.Laravel Route und Parameter
<form method="post" action="{{action('[email protected]')}}">
<input type="text" name="id">
Controller
public function edit(Request $request)
{
$id=$request->id;
$ply = Player::find($id);
return view::make('player.edit')->with(compact('ply'));
}
Route
Route::get('/player/edit/{id}', '[email protected]');
edit.blade.php
<td>{{$ply[first_name]}}</td>
ich nicht definierte Variable first_name Störung erhalte.
@ KenGraham.if seine nützliche Marke Antwort als akzeptiert. – iCoders
@ KenGraham.glade hier half es dir – iCoders