This repository contains code discussed in the blog post here: https://phpbits.in/logging-recent-views-implementing-view-counter-laravel/
If you want to run this demo project, follow these steps:
- Clone this repo.
- Copy contents of
.env.example
to a.env
file. - Update
DB_DATABASE
,DB_USERNAME
andDB_PASSWORD
with your database details. - Run
php artisan migrate
to migrate the database. - Run
php artisan key:generate
to generateAPP_KEY
. - You're all good to go. Run
php artisan serve
and the app should be up and running.