in my code is
then when I click to edit or delete, I found 404 not found on my website
like this one
this is an error problem for me
and in code route
web.php
Route::get('/rekaman/blog/edit/{$id}','BlogController@edit');
Route::get('/blog/{$id}/hapus','App\Http\Controllers\BlogController@destroy');
and then this my code for BlogController
public function edit($id)
{
$artikel = Blog::find($id);
return view('blog.blog_edit', ['artikel' => $artikel]);
}
public function destroy($id)
{
$artikel = Blog::find($id);
$artikel->delete();
return redirect('/rekaman/blog')
->with('success','Artikel Anda Sudah Kami Hapus');
}
I hope you can help me Thank you
