DEV Community

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

Posted on

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

Top comments (0)