Skip to content

Commit 5fce8b8

Browse files
authored
Migrate to Filament V5
1 parent 9ed8856 commit 5fce8b8

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

README.md

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77
<img alt="fabricator banner" src="https://raw.githubusercontent.com/z3d0x/filament-fabricator/2.x/art/banner.jpg" />
88
</p>
99

10-
***What is Filament Fabricator?*** Filament Fabricator is simply said a block-based page builder skeleton. Filament Fabricator takes care of the PageResource & frontend routing, so you can focus on what really matters: your [Layouts](https://filamentphp.com/plugins/z3d0x-fabricator#layouts) & [Page Blocks](https://filamentphp.com/plugins/z3d0x-fabricator#page-blocks).
10+
**_What is Filament Fabricator?_** Filament Fabricator is simply said a block-based page builder skeleton. Filament Fabricator takes care of the PageResource & frontend routing, so you can focus on what really matters: your [Layouts](https://filamentphp.com/plugins/z3d0x-fabricator#layouts) & [Page Blocks](https://filamentphp.com/plugins/z3d0x-fabricator#page-blocks).
1111

1212
## Compatibility
13-
| Fabricator | Filament | PHP |
14-
|------|----------|--------|
15-
| [1.x](https://github.com/z3d0x/filament-fabricator/tree/1.x) | ^2.0 | ^8.0 |
16-
| [2.x](https://github.com/z3d0x/filament-fabricator/tree/2.x) | ^3.0 | ^8.1 |
17-
| [3.x](https://github.com/z3d0x/filament-fabricator/tree/3.x) | ^4.0 | ^8.2 |
13+
14+
| Fabricator | Filament | PHP |
15+
| ------------------------------------------------------------ | -------- | ---- |
16+
| [1.x](https://github.com/z3d0x/filament-fabricator/tree/1.x) | ^2.0 | ^8.0 |
17+
| [2.x](https://github.com/z3d0x/filament-fabricator/tree/2.x) | ^3.0 | ^8.1 |
18+
| [3.x](https://github.com/z3d0x/filament-fabricator/tree/3.x) | ^4.0 | ^8.2 |
19+
| [4.x](https://github.com/z3d0x/filament-fabricator/tree/4.x) | ^5.0 | ^8.3 |
1820

1921
## Installation
2022

@@ -24,8 +26,8 @@ You can install the package via composer:
2426
composer require z3d0x/filament-fabricator
2527
```
2628

27-
2829
After that run the install command:
30+
2931
```bash
3032
php artisan filament-fabricator:install
3133
```
@@ -65,20 +67,42 @@ Documentation can be viewed at: https://filamentphp.com/plugins/z3d0x-fabricator
6567

6668
## Migrate
6769

70+
### From 3.x to 4.x
71+
72+
- Relies on PHP 8.3 as the minimum version
73+
6874
### From 2.x to 3.x
6975

7076
- There is no longer a default value for the `pages.layout` database column
7177
- `FilamentFabricatorManager#getPageUrlFromId` no longer has a `prefixSlash` parameter
78+
- Relies on PHP 8.2 as the minimum version
79+
80+
### From Filament v4 to Filament v5
81+
82+
Following [the upgrade guide from Filament](https://filamentphp.com/docs/5.x/upgrade-guide) should be enough.
83+
84+
In case it isn't, you can run the following commands:
85+
86+
```bash
87+
composer require filament/upgrade:"^5.0" -W --dev
88+
89+
./vendor/bin/filament-v5
90+
91+
# Run the commands output by the upgrade script, they are unique to your app
92+
composer require filament/filament:"^5.0" z3d0x/filament-fabricator:"^5.0" -W --no-update
93+
composer update
94+
```
7295

7396
### From Filament v3 to Filament v4
7497

7598
Following [the upgrade guide from Filament](https://filamentphp.com/docs/4.x/upgrade-guide) should be enough.
7699

77100
In case it isn't, you can run the following commands:
101+
78102
```bash
79103
composer require filament/upgrade:"^4.0" -W --dev
80104

81-
vendor/bin/filament-v4
105+
./vendor/bin/filament-v4
82106

83107
# Run the commands output by the upgrade script, they are unique to your app
84108
composer require filament/filament:"^4.0" z3d0x/filament-fabricator:"^4.0" -W --no-update

0 commit comments

Comments
 (0)