Clear Laravel cache files to fix 500 Server Errors
Your Laravel application is returning 500 Server Error for API endpoints. This is usually caused by cached configuration files that contain incorrect paths or settings.
This will clear all cached configuration, route, and view files:
bootstrap/cache/
- Configuration and route cachestorage/framework/cache/
- Application cachestorage/framework/views/
- Compiled view cacheTest your API endpoints:
curl --location 'https://ansteches.shop/api/login' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data-raw '{ "email": "admin@ansteches.shop", "password": "password123" }'