I am new to laravel and now i am facing a small issue. When i try to load the page , it shows like,
"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