承接 wremon/laralogs 相关项目开发

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

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

wremon/laralogs

最新稳定版本:v2.0.0

Composer 安装命令:

composer require wremon/laralogs

包简介

This is my package laralogs

README 文档

README

This package is for centralized logging of multiple Laravel application into one connection.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Installation

You can install the package via composer:

composer require wremon/laralogs

Configuration

After installing, publish the config using the command below:

php artisan vendor:publish --provider="Wremon\Laralogs\LaralogsServiceProvider"

Set Up .env

LARALOGS_DB_CONNECTION=sqlite
LARALOGS_DB_HOST=
LARALOGS_DB_PORT=
LARALOGS_DB_DATABASE=
LARALOGS_DB_USERNAME=
LARALOGS_DB_PASSWORD=
LARALOGS_DB_DATABASE="/Users/username/www/my-project/database/database.sqlite"
LARALOGS_APP_NAME="My App Name"
LARALOGS_USER_MODEL="\App\Models\User"
LARALOGS_USER_COLUMN="email"

The LARALOGS_APP_NAME determines the name of the application in the logging table.

User Model

Include Laralogs to your User.php model.

use Wremon\Laralogs\Loggable;

use Loggable;

Usage

Get all the authentication logs of a user

User::find(1)->logs

Get the last authentication logs of a user

User::find(1)->lastLogin()
User::find(1)->lastLoginIp()

Get the previous authentication logs of a user

User::find(1)->previousLogin()
User::find(1)->previousLoginIp()

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固