定制 cavespoidy/laralogger 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

cavespoidy/laralogger

最新稳定版本:0.5.9-beta.3

Composer 安装命令:

composer require cavespoidy/laralogger

包简介

laravel model activity logger package

README 文档

README

Issues Stars

Installation

You can install the package via composer:

composer require cavespoidy/laralogger

Clone Package

git clone https://github.com/prithwijoysaha/LaraLogger LaraLogger

Usage

Step 1: RUN Command: php artisan migrate
Step 2: Use It On Any Model: use LaraLogger;
Step 3: Use It On Any Model: use cavespoidy\laralogger\LaraLogger;

Example (Just Like) : Model\User.php

namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use cavespoidy\LaraLogger\LaraLogger;

class User extends Authenticatable
{
    use LaraLogger;
}

Customization:

By default its uses the Auth()->id for userId to customize it just publish it. After publishing you will find a file named laralogger.php at config directory.

Thing To Keep In Mind:

  1. LaraLogger only works with DML queries of Laravel Eloquent Example:
User::find(1)->delete();        // For this LaraLogger is made for.
User::where('id',1)->delete();  // For this LaraLogger don't work.
  1. LaraLogger will average execution time is 10ms approx.
  2. LaraLogger wont save the geo-location details and isp-details for localhost/127.0.0.1
  3. It can throw exceptions only in local environment. And save exceptions at log file for production environment for smoother experience.
  4. LaraLogger by default use two open source APIs: => www.geoplugin.net => www.ip-api.com Thanks to geoplugin.net and ip-api.com

Testing

composer require cavespoidy/laralogger/Test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固