wiserwebsolutions/filament-extras

This is my package filament-extras

dev-main 2025-08-22 16:58 UTC

This package is auto-updated.

Last update: 2025-08-22 16:58:26 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is a package withs some "missing" features from the standard filament package. It is very much in development but probably can be used in production. Be careful or whatever.

Installation

You can install the package via composer:

composer require wiserwebsolutions/filament-extras

You can publish and run the migrations with:

php artisan vendor:publish --tag="filament-extras-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="filament-extras-config"

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-extras-views"

This is the contents of the published config file:

return [
];

Usage

Register the Plugin

Add the plugin to your Filament panel in a service provider or your Filament config:

use FilamentExtras\FilamentExtrasPlugin;

public function panel(Panel $panel): Panel
{
	return $panel
		->plugin(FilamentExtrasPlugin::make());
}

Table Actions

This package provides extra table actions for Filament:

  • ArchiveAction and ArchiveBulkAction: Archive records with confirmation dialogs.
  • EditBulkAction: Edit multiple records at once.
  • DefaultActionGroup: Quickly add a group of common actions to your tables.

Example usage in a Filament table resource:

use FilamentExtras\Tables\Actions\ArchiveAction;
use FilamentExtras\Tables\Actions\ArchiveBulkAction;
use FilamentExtras\Tables\Actions\EditBulkAction;
use FilamentExtras\Tables\Actions\DefaultActionGroup;

public static function table(Table $table): Table
{
	return $table
		->actions([
			DefaultActionGroup::make(),
			EditBulkAction::make(),
			ArchiveAction::make(),
			ArchiveBulkAction::make(),
		]);
}

Form Components

Extra form components are available:

  • ToggleButtons
  • Separator
  • Repeater (compact view)
  • PhoneInput

Example usage in a Filament form:

use FilamentExtras\Forms\Components\ToggleButtons;
use FilamentExtras\Forms\Components\Separator;
use FilamentExtras\Forms\Components\Repeater;
use FilamentExtras\Forms\Components\PhoneInput;

public static function form(Form $form): Form
{
	return $form
		->schema([
			ToggleButtons::make('status'),
			Separator::make()->label('Details'),
			Repeater::make('items')->compact(),
			PhoneInput::make('phone'),
		]);
}

Facade

You can use the provided facade for direct access:

use FilamentExtras\Facades\FilamentExtras;

FilamentExtras::someMethod();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.