jeudi 30 janvier 2020

Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException thrown with message

I got this error when i tried to make a crud program on Laravel

Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException 
No message

my code :

public function update(Request $request){
DB::table('berita')->where('id_berita',$request->id)->update([
    'judul' => $request->judul,
    'isi_berita' => $request->isi,
]);
return redirect('/berita');
}

Help me to solve this T_T



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire