承接 varunazad/laravel-user-activity-log 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

varunazad/laravel-user-activity-log

Composer 安装命令:

composer require varunazad/laravel-user-activity-log

包简介

Simple Laravel user activity logger

README 文档

README

Laravel Version PHP Version License

A simple and extensible Laravel package to log user and customer activities automatically—similar to Laravel Telescope but lightweight and focused on customer-level activity tracking.

🚀 Features

  • ✅ Logs all authenticated user activities
  • 🧠 Tracks request method, route, user ID, IP, browser, etc.
  • 🔍 View logs easily in DB or optional web view
  • 🔧 Configurable via config/user-activity-log.php
  • 📦 Supports publishing config and migrations

⚙️ Configuration

Publish the config and migration files:

php artisan vendor:publish --tag=user-activity-log-config
php artisan migrate

This will: Create config/user-activity-log.php Run the log table migration (user_activity_logs)

🧩 Usage

Use Trait like this:

use Varunazad\LaravelUserActivityLog\Traits\LogsActivity;

class User extends Authenticatable
{
    use LogsActivity;
}

This will: The logging is automatic for each request made by an authenticated user. You can customize which actions to log in the config.

🛠️ Config Options

return [
'enabled' => true,
'log_guests' => false,
'log_methods' => ['GET', 'POST', 'PUT', 'DELETE'],
'excluded_routes' => ['login', 'logout'],
'user_model' => App\Models\User::class,

] ];

📦 Installation

composer require varunazad/laravel-user-activity-log


---



统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-07-30