定制 coziboy/log-user-activity-for-backpack 二次开发

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

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

coziboy/log-user-activity-for-backpack

最新稳定版本:1.0.4

Composer 安装命令:

composer require coziboy/log-user-activity-for-backpack

包简介

Log user activity in backpack

README 文档

README

Latest Version on Packagist Total Downloads Build Status StyleCI

A simple interface for spatie/laravel-activitylog for Laravel Backpack.

Installation

  1. In your terminal
# install the package with composer
$ composer require coziboy/log-user-activity-for-backpack

# Publish view
$ php artisan vendor:publish --provider="Coziboy\LogUserActivityForBackpack\LogUserActivityForBackpackServiceProvider"

# [optional] Add a sidebar_content item for it
php artisan backpack:add-sidebar-content "<li class='nav-item'><a class='nav-link' href='{{ backpack_url('log-user') }}'><i class='nav-icon la la-history'></i> Log User Activity</a></li>"
  1. Finish all installation steps for spatie/laravel-activitylog, which has been pulled as a dependency. Run its migrations. Most likely it's:
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="migrations"
php artisan migrate
// To make this work all you need to do is let your model use the Spatie\Activitylog\Traits\LogsActivity-trait
  1. Change guard configuration values in config/backpack/base.php
'guard' => null,

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email tolong@buatin.website instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 4
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-22