DEV Community

loading...
Cover image for Monitor User Activity in Laravel Application!

Monitor User Activity in Laravel Application!

haruncpi profile image Md Harun Ur Rashid ・1 min read

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

Discussion (0)

Forem Open with the Forem app