定制 eminiarts/aura-cms-activity 二次开发

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

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

eminiarts/aura-cms-activity

Composer 安装命令:

composer require eminiarts/aura-cms-activity

包简介

Aura CMS Plugin: activity

README 文档

README

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

This Package is a Plugin for the Aura CMS. It logs activities of the resources using spatie's activitylog package.

Installation

You can install the package via composer:

composer require eminiarts/aura-cms-activity

Publish Spatie's Activitylog package and run the migrations:

php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-migrations"

php artisan migrate

Use this trait in your Resource to Log Activity:

use Aura\Activity\LogActivity;

class News extends Resource
{
    use LogActivity;
// ...
}

Fields to be logged can be defined in the resource:

[
    'name' => 'Aktivität',
    'type' => 'Aura\\Base\\Fields\\Tab',
    'validation' => '',
    'global' => true,
    'conditional_logic' => function () {
        return auth()->user()->isSuperAdmin();
    },
    'slug' => 'tab-activity',
],
[
    'name' => 'Aktivität',
    'type' => 'Aura\\Base\\Fields\\View',
    'validation' => '',
    'on_view' => true,
    'view' => 'aura-cms-activity::activity',

    'slug' => 'aktivitaet',
],

Optionally, you can publish the views using

php artisan vendor:publish --tag="aura-cms-activity-views"

Changelog

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

Credits

License

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

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-15