DEV Community

Discussion on: How to Create a Secure CRUD RESTful API in Laravel 8 and 7 Using Laravel Passport

Collapse
 
vincenttetteh profile image
Vincent Tetteh • Edited

Target class [App\Http\Controllers\App\Http\Controllers\API\ProjectController] does not exist
please help me

Collapse
 
ginsengsage profile image
GinsengSage

Hello, do you decide this problem?

Collapse
 
skdevelopers profile image
Mian Salman

If composer dumpautoload is not helping then check if you have proper namespace declaration in ProjectController.php and double check for typos in class name/route declaration.

Collapse
 
unreality23 profile image
Vaidotas

In header please add Key: Accept Value: application/json

Collapse
 
akomykel profile image
Michael Angelo Mahinay • Edited

Hi @vincenttetteh ! In case you're still having this issue, you may refer to this link:
stackoverflow.com/questions/638079...

We have the same problem and this solved mine