vendredi 20 décembre 2019

The GET method is not supported for this route. Supported methods: POST in laravel

I am new to laravel and now I am facing a small issue. When I try to load the page, it shows:

"The GET method is not supported for this route. Supported methods: POST".

Here is my route:

Route::post('/updatereq','UpdateController@requp')->name('updatereq');

view Page:

form method="POST" action="/updatereq" 
@csrf

controller:

public function requp(Request $request)
$response = Reqmodel::where('complaint_id', '=', $request->complaint_id)
->update([
'title' => $request->req == NULL ? '' : $request->req,]));

I saw many related topics, but it couldn't working for me. Thanks in Advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire