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.exampleto a.envfile. - Update
DB_DATABASE,DB_USERNAMEandDB_PASSWORDwith your database details. - Run
php artisan migrateto migrate the database. - Run
php artisan key:generateto generateAPP_KEY. - You're all good to go. Run
php artisan serveand the app should be up and running.