當你在routes/web.php檔案中使用GET類型的路由時,在採用方法類型為「POST」的表單中,它會出現(xiàn)「不支援GET方法」的錯誤,因為在前端提交類型和路由類型之間存在衝突。
嘗試在routes/web.php中轉(zhuǎn)換你的路由:
Route::get('/some-url', 'NameOfController@NameOfFunction');
然後
Route::post('/some-url', 'NameOfController@NameOfFunction');