This package allows you to view logs directly in the Laravel Orchid admin panel.
- 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
You can install the package via composer:
composer require manzadey/laravel-orchid-storage-logs
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'),
];
}
}
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email andrey.manzadey@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.