我得到了这个POST路由,但是如果有人在浏览器上尝试这个地址,它就会变成一个GET路由,并且laravel会抛出一个错误。有没有办法在POST路由上为GET请求抛出一个404页面。Route::post('/step2Validate', 'StepController@step2Validate'); If this route is access as GET“此路由不支持
路由(web.php) Route::get('/pegawai','PegawaiController@index'); PegawaiController.php <?index() //mengambil data dari table pegawai
$pegawai = DB::table('pegawai')->get我使用的是laravel 8.6 我试着创建新的项目,没有问题,