ahmedshaan/filament-approval-workflow

There is no license information available for the latest version (v1.0.0) of this package.

Filament v3 plugin for the approval workflow is an excellent way to package this functionality and make it easily reusable across different Filament projects.

v1.0.0 2024-06-30 19:15 UTC

This package is auto-updated.

Last update: 2025-06-29 02:18:09 UTC


README

...

In your Filament resource, use the plugin's actions, state column, and form components:

use AhmedShaan\FilamentApprovalWorkflow\FilamentApprovalWorkflowPlugin;
use AhmedShaan\FilamentApprovalWorkflow\Traits\HasApprovalWorkflowForm;

class YourResource extends Resource
{
    use HasApprovalWorkflowForm;

    public static function table(Table $table): Table
    {
        return $table
            ->columns([
                // ...
                FilamentApprovalWorkflowPlugin::getStateColumn(),
            ])
            ->actions([
                ...FilamentApprovalWorkflowPlugin::getTableActions(),
            ]);
    }

    public static function form(Form $form): Form
    {
        return $form
            ->schema([
                // Your other form fields...
                ...static::getFormSchema(),
            ]);
    }

    // ...
}