Skip to content
loading...
Cover image for Laravel VisitLog

Laravel VisitLog

sarfraznawaz2005 profile image Sarfraz Ahmed github logo ・1 min read  

VisitLog is a simple Laravel 5 package that can be used to log visitor information and save it into database.

sarfraznawaz2005 / visitlog

:alarm_clock: Laravel package to log visitor information into database.

Laravel VisitLog

Laravel 5.1 Laravel 5.2 Laravel 5.3 Laravel 5.4 Laravel 5.5 Total Downloads

Introduction

VisitLog is a simple Laravel 5 package that can be used to log visitor information and save it into database.

Features

  • Other than basic log such as IP, Browser and OS, it can also log Location information.
  • Allows to log both unique and non-unique visits based on IP.
  • Allows to cache the visits based on IP.
  • Allows to log authenticated user info.
  • Provides log viewer page out of box.
  • Provides basic http authentication for app users.

Note: VisitLog cannot detect same user/IP coming from some anonymizer so it cannot differentiate that.

Screenshot

Main Window

Note: Info in above screenshot is fake.

Requirements

  • PHP >= 5.5.9
  • Laravel 5

Installation

Install via composer

composer require sarfraznawaz2005/visitlog

For Laravel < 5.5:

Add Service Provider to config/app.php in providers section

Sarfraznawaz2005\VisitLog\VisitLogServiceProvider::class,

Add Facade to config/app.php in aliases section

'VisitLog' => Sarfraznawaz2005\VisitLog\Facades\VisitLog::class,

Run php

twitter logo DISCUSS
Discussion
markdown guide
Classic DEV Post from Jul 27 '19

If You Don't Know, Now You Know - GitHub Is Restricting Access For Users From Iran And A Few Other Embargoed Countries

Please help our cause against modern-day discrimination

Sarfraz Ahmed profile image
Hello, I am Sarfraz Ahmed, a self-taught programmer from Karachi, Pakistan mainly involved in PHP, MySQL, HTML/CSS, JavaScript/jQuery for around 10 years now.