what's wrong with my routes? it cant redirect to my edit-info form inside InfosController
web.php
route::get('/info-admin/{$info}/edit','InfosController@edit');
info-admin.blade.php
@foreach ( $info as $infos )
<tr>
<th scope="row" class="align-middle"></th>
<td class="align-middle"></td>
<td class="align-middle"></td>
<td class="align-middle"></td>
<td class="align-middle"></td>
<td class="align-middle"></td>
<td class="align-middle form">
<a href="/info-admin//edit"><button type="submit" class="btn btn-info mb-3">Edit</button></a>
<form method="POST" action="">
<button type="submit" class="btn btn-danger">Hapus</button>
</form>
</td>
</tr>
@endforeach
InfosController@edit
public function edit($id)
{
return view('admin.edit-info');
}
what did i do wrong, why laravel cant find my routes?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire