From the course: Building RESTful APIs in Laravel
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Creating an author resource infrastructure
From the course: Building RESTful APIs in Laravel
Challenge: Creating an author resource infrastructure
(upbeat music) - [Instructor] Welcome to our first challenge. Let's practice what we have learned so far. In this challenge, I'm going to ask you to create a brand new resource for an author, because as a part of our e-petitions API we might want to allow our users to display all petitions created by one author. I'd like you to create an author model, a controller, routes, API resource, migration, factory and a seeder using PHP artisan. Don't worry about making all these classes work yet. Just create them for now. Limit the author controller to only display all authors and an individual author. We will not let our users to create, update, or delete authors. So go ahead and give it a go. If you can't remember how to do something revisit the previous videos or watch my solution video next. Good luck.
Contents
-
-
-
-
(Locked)
The project infrastructure3m 32s
-
(Locked)
Creating the database structure6m 35s
-
(Locked)
Creating a model factory and seeder5m 43s
-
Setting up the RESTful API routes4m 44s
-
(Locked)
Challenge: Creating an author resource infrastructure55s
-
(Locked)
Solution: Creating an author resource infrastructure2m 37s
-
(Locked)
-
-
-