404 not found error is sending to new post api urls. I used these commands
php artisan clear-compiled
php artisan cache:clear
php artisan config:clear
But problem not solved. what should I do ? ?
CodePudding user response:
Use this commmand to list all routes project
php artisan route:list
CodePudding user response:
Add API urls to routes/api.php
then try this that may help:
php artisan optimize:clear
php artisan route:list
CodePudding user response:
Laravel Route
Route Default Rule's
**API**
{url}/api/{xyz}
**WEB**
{url}/{xyz}
Also, Try to Use
php artisan route:clear