Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On Dec. 29th 2016

How Do I: How Do I Create A Snippets App: Part 2

Episode 14 Run Time 11:33

Download

In this second part, we'll first implement the necessary functionality to allow users to "fork" existing snippets. Then, we'll apply syntax highlighting (using highlight.js), and wrap up our project. View the source for this two-part lesson on GitHub.

Homework: Clone this project, and begin extending it with your own features. Here are some ideas to get you started:

  1. Add user registration, and associate each snippet with an owning user.
  2. Allow users to view only their snippets.
  3. Add a "like" button to each snippet, and list users in sidebar by those who have the most snippet likes.
  4. Add a "language" column to allow for better sorting.