Add bokshorn-it/filament-activity-timeline package for enhanced audit logging functionality. Update README to reflect new key package and improve localization for audit-related terms. Remove deprecated ActivityLogResource and related pages, integrating activity timeline features into existing resources. Update models to implement ProvidesActivityTitle for better activity tracking.
This commit is contained in:
24
app/Filament/ActivityTimeline/AuditLogResource.php
Normal file
24
app/Filament/ActivityTimeline/AuditLogResource.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Filament\ActivityTimeline;
|
||||
|
||||
use App\Filament\Concerns\HasHrResourceLabels;
|
||||
use BokshornIt\FilamentActivityTimeline\Resources\ActivityResource;
|
||||
|
||||
class AuditLogResource extends ActivityResource
|
||||
{
|
||||
use HasHrResourceLabels;
|
||||
|
||||
protected static ?string $slug = 'activity-logs';
|
||||
|
||||
protected static function hrLabelKeys(): array
|
||||
{
|
||||
return [
|
||||
'model' => 'activity_log',
|
||||
'plural' => 'activity_logs',
|
||||
'navigation' => 'audit_log',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user