Back to the Learning

Beep Beep. Subscription Required.

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.

About This Episode

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.
Back to Series Button