Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Build a REST API with Laravel Accessing Data with Resources Testing Book Resources and Routes

Dario Preglej
Dario Preglej
9,771 Points

Post book

Posting a book reasource trough REST client does not work!

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi, Dario Preglej! I feel like there's not enough information to go on. This could be caused by any number of things including a bug in the REST client extension for VS Code.

I'd be interested to know:

  • what HTTP response code is returned by the server (404, 500, etc)
  • if there was a response code returned by the server
  • if your .env file is set up properly and in the proper place
  • do you have a GitHub repo where you are storing your work?
  • If your Apache instance is running without problem
  • If your MySQL instance is running without problem
  • if your php_error.log file shows anything out of the ordinary
  • does it only not work in the REST client or does it also fail when using Postman?

Let me know! :sparkles: