This is the source code for the demo project, Pixl, from Laracasts.
At the conclusion of Section 3, we pass it over to YOU.
At this point, we have a working SPA that can be pushed to production. But, of course, there's so much more to do. Here are some ideas, if you'd like to continue your learning:
- Implement the Bookmarking feature. When the user clicks the bookmark icon, the
user_idandpost_idfields should be inserted into a newbookmarkstable that you create. - Implement the UI and forms for registration, login, and profile editing. Then update the dev-specific endpoints within your
routes/web.phpfile accordingly. - Use Laravel Socialite to add "Sign In With Google" and "Sign In With GitHub" functionality.
- Both
PostControllerandProfileControllerinclude non-resourceful actions. While this is okay, consider extracting new controllers. Perhaps thelikeandunlikewithinPostControllercould be extracted to aLikePostControllercontroller. This would allow you to return tostoreanddestroyaction/method names. - Add a "Highlights" feature. Any user may mark their own post as "highlighted." This will make the post show up within the "Highlights" tab on their profile page.
- Add support for attaching an image to a post. Research Laravel's
Storagecomponent to learn more.