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

Подскажите в чем проблема. Мой ajax запрос

            getData(){
        axios.post("/admin/statistic/topsample/",{
            date_start:this.date_start,
            date_end:this.date_end
        })
            .then((msg)=>{
                this.data = msg.data;
                console.log(this.data);
            })
    }
},

Route

Route::get("/topstore","StatisticController@topstore")->name("topstore");
Route::post("/topsample","StatisticController@topsample")->name("topsample");

Ответы (1 шт):

Автор решения: Vitalii Bolkot

Ваша API:

/admin/statistic/topsample/

не поддерживает метод Get...

На бекенде добавьте метод get к вашему запросу что б на фронте иметь доступ к этому методу

→ Ссылка