manzadey/laravel-orchid-storage-logs
最新稳定版本:v1.0.2
Composer 安装命令:
composer require manzadey/laravel-orchid-storage-logs
包简介
Package for Laravel Admin Panel Orchid. Allows you to view laravel logs in the Orchid admin panel.
README 文档
README
This package allows you to view logs directly in the Laravel Orchid admin panel.
List of logs
Show Log
Features:
- Download logs
- Views logs
- Delete logs
- Sorting logs by name, date, size
- Filtering logs by name
- Sorting log messages by date, environment, type
- Filtering log messages by environment, type, message
Installation
You can install the package via composer:
composer require manzadey/laravel-orchid-storage-logs
Usage
Optional publish config:
php artisan vendor:publish --tag=storage-logs-config
Publish routes:
php artisan vendor:publish --tag=storage-logs-routes
Or add yourself to the file platform.php
use Illuminate\Support\Facades\Route; use Manzadey\LaravelOrchidStorageLogs\Screens as StorageLogScreens; use Tabuna\Breadcrumbs\Trail; Route::name('platform.storage-logs.') ->prefix('storage-logs') ->group(static function() { Route::screen('', StorageLogScreens\StorageLogListScreen::class) ->name('list') ->breadcrumbs(static fn(Trail $trail) : Trail => $trail ->parent('platform.index') ->push(__('Storage Logs'), route('platform.storage-logs.list')) ); Route::screen('{storageLog}', StorageLogScreens\StorageLogShowScreen::class) ->name('show') ->breadcrumbs(static fn(Trail $trail, string $storageLog) : Trail => $trail ->parent('platform.storage-logs.list') ->push($storageLog, route('platform.storage-logs.show', $storageLog)) ); });
Add a menu item to the method registerMainMenu() in the PlatformProvider to access logs:
use Manzadey\LaravelOrchidStorageLogs\Screen\Actions\StorageLogsMenu; class PlatformProvider extends OrchidServiceProvider { /** * @return Menu[] */ public function registerMainMenu(): array { return [ // Menu items StorageLogsMenu::make() ->route('platform.storage-logs.list'), ]; } }
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email andrey.manzadey@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 35
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 6
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-07

