anchorcms/anchor-cms — pull request #456 by molovo (2013-08-12 17:55:09+00:00)
Title: Adds quick link to 'like' posts

I hope this is the right way to add a migration.

I've been asked how to create something like this a few times and figured it's worth including since it's so simple.

Adds a route to enable 'likes' on posts. Direct user to `like/slug`, and the value in the likes column is incremented by one, then the session is updated to reflect the fact that the post has been liked, so that the link can be disabled.

Implement like so:

```php

Thanks!

Love it!

```