DEV Community

Cover image for Monitor User Activity in Laravel Application!
Md Harun Ur Rashid
Md Harun Ur Rashid

Posted on

3 1

Monitor User Activity in Laravel Application!

User activity monitoring in your laravel application is really easy with Laravel User Activity package. It can monitor user login, lockout, record edit, insert and delete operation with a beautiful UI.

Installation

composer require haruncpi/laravel-user-activity
Enter fullscreen mode Exit fullscreen mode

Now run install command

php artisan user-activity:install
Enter fullscreen mode Exit fullscreen mode

To monitor data edit, delete or insert on certain model use Loggable trait in your model.

<?php namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Haruncpi\LaravelUserActivity\Traits\Loggable;

class Invoice extends Model
{
    use Loggable;

} 
Enter fullscreen mode Exit fullscreen mode

This package has a beautiful UI to check user activity.
http://example.com/admin/user-activity
Activity Dashboard

GitHub repo: Laravel User Activity

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay