DEV Community

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

Collapse
 
skdevelopers profile image
Mian Salman

You have not told us how to deal with access token because when I entered data in 127.0.0.1:8000/api/register and in 127.0.0.1:8000/api/projects route it shows login route not found and after adding this header X-Requested-With I am getting unauthorized message and on register link it's showing response to unauthorized access ?
how to deal with this I have 0 rows in user db ? show I make fake data first to generate access token

Collapse
 
unreality23 profile image
Vaidotas

I agree, its confusing to say the least for beginner how to use postman in particular.

Collapse
 
nahid570 profile image
Nahid Faraji

I am having the same problem none of this url can be found.
surely, I am modified routes on api.php .

Collapse
 
benjaminv profile image
benjaminv • Edited

You should have modified the api routes not the web routes. I made such mistake at the beginning that resulted none of the url existed.
When I carefully corrected two typos in my scripts following the tutorial it worked.