Laravel API Authorization Troubleshooting

Job ID: 38704052

Budget: ₹600 – ₹1,500 INR

I'm facing an issue with my Laravel project's API where it returns an 'unauthorized' error when I use the API key for authentication. However, all other public endpoints function perfectly without authentication. This problem exists across all endpoints that require the API key.

Key Details:
- Server Environment: Azure VPS with cPanel
- Authorization Method: API Key
- API Key Security: The key is securely stored and not hardcoded

I need an experienced Laravel developer with a good understanding of API development and authorization methods to help troubleshoot and fix this issue. Please include any relevant experience in your proposal.
Related categories: PHP Linux Apache MySQL Laravel