wiserwebsolutions / filament-extras
This is my package filament-extras
Requires
- php: ^8.2
- filament/filament: ^3.0|^4.0
- illuminate/contracts: ^9.28|^10.0|^11.0|^12.0
- spatie/laravel-package-tools: ^1.92.0
Requires (Dev)
- laravel/pint: ^1.0
- mockery/mockery: ^1.5
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.7|^8.0|^9.0|^10.0
- pestphp/pest: ^1.23|^2.1|^3.1
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/php-code-coverage: ^9.0|^10.0|^11.0
- phpunit/phpunit: ^9.5.24|^10.5|^11.5
- spatie/laravel-ray: ^1.26
- spatie/pest-plugin-test-time: ^1.1|^2.2
This package is auto-updated.
Last update: 2025-08-22 16:58:26 UTC
README
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
andArchiveBulkAction
: 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.