-6

I'm having trouble, when testing GET X API KEY in postman, a bug appears that the App\Http\Middleware\Apikey class is not found, but when I test the GET method without including the X API KEY there is no problem or bug, is there an error in declaring or just a writing error? Please provide a solution.enter image description here

1
  • Please take the tour and learn How to Ask. Commented Nov 13 at 13:02

1 Answer 1

2
  • Your middleware file name or class name is CheckApikey

  • But you registered it as Apikey

  • Laravel is case-sensitive → mismatch → class not found.

Fix the class path in Kernel.php and everything will work.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.