ejntaylor/activitylog-pulse

Spatie Activity Log 的 Laravel Pulse 卡片

v1.0.0 2024-05-29 09:47 UTC

This package is auto-updated.

Last update: 2024-09-08 04:03:15 UTC


README

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

此功能在 Laravel Pulse 控制台中显示 Spatie Activity Log 包的日志。

目前有两个卡片:模型事件和非模型事件。

image

安装

您可以通过 composer 安装此包

composer require ejntaylor/activitylog-pulse

您可以使用以下命令发布并运行迁移

php artisan vendor:publish --tag="activitylog-pulse-migrations"
php artisan migrate

您可以使用以下命令发布配置文件

php artisan vendor:publish --tag="activitylog-pulse-config"

可选,您可以使用以下命令发布视图

php artisan vendor:publish --tag="activitylog-pulse-views"

使用方法

将以下内容添加到您的 Pulse 控制台:resources/views/vendor/pulse/dashboard.blade.php

    <livewire:pulse.activity-log-card cols="6" />

    <livewire:pulse.activity-log-model-events-card cols="6" />

卡片类型:您可以通过传递参数 'type=chart' 或 'type=list' 来选择卡片的输出类型。默认为 'chart'。

    <livewire:pulse.activity-log-card cols="6" type="chart" />

    <livewire:pulse.activity-log-model-events-card cols="6" type="list" />

测试

composer test

变更日志

有关最近更改的更多信息,请参阅 变更日志

贡献

有关详细信息,请参阅 贡献指南

安全漏洞

有关如何报告安全漏洞,请参阅 我们的安全策略

致谢

许可

MIT 许可证(MIT)。有关更多信息,请参阅 许可文件