php - The POST method is not supported for this route. Supported methods: GET, HEAD. I Want To save data from curl to database table
Solution:
Please clear the route cache:
php artisan route:clear
If don't work remove this file:
bootstrap/cache/routes-v7.php
or
bootstrap/cache/routes.php
Answer
Solution:
In the route file make it post
from get
:
Route::post('statistics', [StatisticsController::class,'store']);
SourceUse API route (
api.php
) for external API call.