Skip to content

Commit e4b38f6

Browse files
committed
Update README.md
1 parent 150ac85 commit e4b38f6

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ This plugin is particularly useful for applications that utilize state machines,
6969
This plugin is designed to work with the following dependencies:
7070

7171
- PHP: ^8.1
72-
- Laravel: ^10.0|^11.0
73-
- Filament: ^3.0
72+
- Laravel: ^10.0|^11.0|^12.0
73+
- Filament: ^3.0|^4.0
7474
- Spatie Laravel Model States: ^2.0
7575

7676

@@ -79,11 +79,24 @@ This plugin is designed to work with the following dependencies:
7979
First, you need to have the [Spatie Laravel Model States](https://spatie.be/docs/laravel-model-states) package installed and configured. Make sure you have created an abstract state class for your model.
8080

8181
Next, install the Filament-StateFusion plugin via Composer:
82+
## Installation
83+
84+
| Plugin Version | Filament Version | Readme |
85+
|----------------|------------------|-------------|
86+
| 1.x | 3.x | [Link](https://github.com/A909M/Filament-StateFusion/main/README.md) |
87+
| 2.x | 4.x | [Link](https://github.com/A909M/Filament-StateFusion/2.x/README.md) |
88+
8289

8390
```bash
8491
composer require a909m/filament-statefusion
8592
```
8693

94+
### Upgrading to Filament v4
95+
96+
- `composer require a909m/filament-statefusion:2.0`
97+
- The Action classes were simplified into a single `StateFusionBulkAction` and `StateFusionAction` for pages and tables
98+
99+
87100
Then, implement the `HasFilamentStateFusion` interface and use the `StateFusionInfo` trait on your abstract state class.
88101

89102
Finally, you can start using the components and actions provided by this plugin in your Filament resources.

0 commit comments

Comments
 (0)