Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Build a REST API with Laravel!
You have completed Build a REST API with Laravel!
Preview
Welcome back! In this section, we'll cover how to build a few basic routes so we can test our Authors and Books resources. See you there!
Eloquent
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
of authors from the author controller and
books from the book controller.
0:00
Now we're ready to create our resources
for both our authors and books.
0:03
Before we get started, let's take a look
at the authors returned by our API.
0:08
And you'll notice that in
addition to the name, title,
0:14
company, and email,
we also have an id, created at and
0:19
updated at, which we don't want
to show to our API consumers.
0:23
Hiding database specific data is
a best practice when building an API,
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up