pedr0cazz/spatie-log-ui
Composer 安装命令:
composer require pedr0cazz/spatie-log-ui
包简介
A simple package to view Spatie activity logs in a UI
README 文档
README
A simple Laravel package that provides a user interface to view and manage activity logs generated by the Spatie Laravel Activitylog package.
Features
- View Activity Logs: See a detailed log of all activities in your Laravel application.
- Search and Filter: Easily search and filter logs by various criteria, such as action type, subject ID, causer email, etc.
- Responsive UI: Built with Bootstrap 5, ensuring a responsive and modern interface.
Requirements
- PHP 8.2 or higher
- Laravel 8.x, 9.x, or 10.x
- Spatie Laravel Activitylog
- Yajra DataTables
Installation
To install the package via Composer, run the following command:
composer require pedr0cazz/spatie-log-ui
Publish Assets
After installing the package, you may want to publish the package's views to customize them:
php artisan vendor:publish --tag=spatie-log-ui-views
Usage
Once installed, the package will automatically register its routes and service provider. You can access the UI by visiting the following route in your browser:
/spatie-ui
Make sure you are logged in and have the necessary authentication middleware applied (auth and verified).
Configuration
If you need to customize the package further, you can:
- Publish and Edit Views: Customize the look and feel by editing the published views.
- Customize Logic: Override or extend the functionality by editing the controllers and services if necessary.
Routing
The following routes are registered by this package:
GET /spatie-ui- Displays the activity log UI.GET /spatie-ui/get-ajax-log-data- Fetches log data via AJAX for DataTables.POST /spatie-ui/get-ajax-log-details- Fetches detailed information for a specific log entry.
Development
If you want to contribute or customize the package for your own needs:
- Clone the repository.
- Install the dependencies using
composer install. - Make your changes and submit a pull request if applicable.
License
This package is open-sourced software licensed under the MIT license.
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue.
Support
If you encounter any issues or have any questions, please open an issue on GitHub.
Acknowledgements
This package is built on top of the excellent Spatie Laravel Activitylog package. A big thank you to the Spatie team for their hard work and dedication to the Laravel community.
Key Sections:
- Introduction: Briefly explains what the package does.
- Features: Highlights the main features of the package.
- Requirements: Lists the required versions of PHP, Laravel, and other dependencies.
- Installation: Provides clear instructions on how to install the package using Composer.
- Usage: Details how to access the UI and configure the package.
- Routing: Lists the routes that the package registers.
- Development: Information for developers who want to contribute or customize the package.
- License: Specifies the license under which the package is released.
- Contributing: Encourages contributions and provides guidance on how to do so.
- Support: Directs users to GitHub for support.
- Acknowledgements: Credits the Spatie team for their underlying package.
pedr0cazz/spatie-log-ui 适用场景与选型建议
pedr0cazz/spatie-log-ui 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 400 次下载、GitHub Stars 达 5, 最近一次更新时间为 2024 年 08 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 pedr0cazz/spatie-log-ui 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pedr0cazz/spatie-log-ui 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 400
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-14