Skip to content

cntabana/filament-activity-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

header

Filament Activity Log

Latest Version on Packagist Software License GitHub Workflow Status Total Downloads

This package adds a page to the Filament Admin panel to view the activity log.

Installation

Install via Composer.

Requires PHP 8.0 and Filament 2.0

composer require pxlrbt/filament-activity-log

Usage

Create a page

Create the page inside your resources Pages/ directory. Replace ProductResource with your resource.

<?php

namespace App\Filament\Resources\ProductResource\Pages;

use pxlrbt\FilamentActivityLog\Pages\ListActivities;

class ListProductActivites extends ListActivities
{
    protected static string $resource = ProductResource::class;
}

Register the page

Add the page to your resource's getPages() method.

public static function getPages(): array
{
    return [
        'index' => Pages\ListSpecifications::route('/'),
        'create' => Pages\CreateSpecification::route('/create'),
        'activities' => Pages\ListSpecificationActivites::route('/{record}/activities'),
        'edit' => Pages\EditSpecification::route('/{record}/edit'),
    ];
}

Contributing

If you want to contribute to this packages, you may want to test it in a real Filament project:

  • Fork this repository to your GitHub account.
  • Create a Filament app locally.
  • Clone your fork in your Filament app's root directory.
  • In the /filament-activity-log directory, create a branch for your fix, e.g. fix/error-message.

Install the packages in your app's composer.json:

"require": {
    "pxlrbt/filament-activity-log": "dev-fix/error-message as main-dev",
},
"repositories": [
    {
        "type": "path",
        "url": "filament-activity-log"
    }
]

Now, run composer update.

About

Spatie activity log integration into Filament

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 52.8%
  • Blade 47.2%