After uploading Laravel 6.0 project I am getting “The GET method is not supported for this route. Supported methods: POST.” error
问题 The project is working on my local server without error. But after uploading the project to the server I am getting The GET method is not supported for this route. Supported methods: POST. error. I used Laravel 6.0 Api.php: Route::post('rates', 'ShippoController@rates'); Controller: public function rates(Request $request){ $validatedData = $request->validate([ 'email' => 'required|email', 'name' => 'required', 'token' => 'required', ]); try{ $carts = Cart::whereToken($request->token)->get();