Skip to content

Commit cda76f9

Browse files
committed
refactor: update Filament components structure
1 parent 82ea478 commit cda76f9

File tree

5 files changed

+33
-1
lines changed

5 files changed

+33
-1
lines changed

.ai/filament/2/core.blade.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Filament 2
2+
3+
## Version 2 Changes To Focus On
4+
- Resources are located in `app/Filament/Resources/` directory.
5+
- Resource pages (List, Create, Edit) are auto-generated within the resource structure.
6+
- Forms use the `Forms\Components` namespace for form fields.
7+
- Tables use the `Tables\Columns` namespace for table columns.
8+
- Admin panel accessible at `/admin` by default.

.ai/filament/3/core.blade.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Filament 3
2+
3+
## Version 3 Changes To Focus On
4+
- Resources are located in `app/Filament/Resources/` directory.
5+
- Resource pages (List, Create, Edit) are auto-generated within the resource structure.
6+
- Forms use the `Forms\Components` namespace for form fields.
7+
- New RichEditor component available (`Filament\Forms\Components\RichEditor`) instead of Markdown Editor.
8+
- Tables use the `Tables\Columns` namespace for table columns.
9+
- Admin panel accessible at `/admin` by default.
10+
- Form and table schemas now use fluent method chaining.
11+
- Added `php artisan filament:optimize` command for production optimization.
12+
- Requires implementing `FilamentUser` contract for production access control.
13+
- New RichEditor component (Filament\Forms\Components\RichEditor) is available,

.ai/filament/4/core.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@
99
- The `Form` & `Infolist` layout components have been moved to `Filament\Schemas\Components`, for example `Grid`, `Section`, `Fieldset`, `Tabs`, `Wizard`, etc.
1010
- A new `Repeater` component for Forms has been added.
1111
- Icons now use the `Filament\Support\Icons\Heroicon` Enum by default. Other options are available and documented.
12+
13+
### Organize Component Classes Structure
14+
- Schema components: `Schemas/Components/`
15+
- Table columns: `Tables/Columns/`
16+
- Table filters: `Tables/Filters/`
17+
- Actions: `Actions/`

.ai/filament/core.blade.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
- Filament is by this application, check how and where to follow existing application conventions.
33
- Filament is a Server-Driven UI (SDUI) framework for Laravel. It allows developers to define user interfaces in PHP using structured configuration objects. It is built on top of Livewire, Alpine.js, and Tailwind CSS.
44
- You can use the `search-docs` tool to get information from the official Filament documentation when needed. This is very useful for Artisan command arguments, specific code examples, testing functionality, relationship management, and ensuring you're following idiomatic practices.
5+
- Do not use the package name in the query, this project's packages are automatically share
6+
- Use multiple, broad, simple, topic based queries
7+
- Utilize static `make()` methods for consistent component initialization.
58

69
### Artisan
710
- You must use the Filament specific Artisan commands to create new files or components for Filament. You can find these with the `list-artisan-commands` tool, or with `php artisan` and the `--help` option.
@@ -29,7 +32,8 @@
2932
</code-snippet>
3033
@endverbatim
3134

32-
### Testing
35+
36+
## Testing
3337
- It's important to test Filament functionality for user satisfaction.
3438
- Ensure that you are authenticated to access the application within the test.
3539
- Filament uses Livewire, so start assertions with `livewire()` or `Livewire::test()`.

all.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public function packages(): \Laravel\Roster\PackageCollection
6060
$enumMapping = [
6161
'php' => \Laravel\Roster\Enums\Packages::LARAVEL, // Use Laravel as placeholder for php
6262
'laravel' => \Laravel\Roster\Enums\Packages::LARAVEL,
63+
'filament' => \Laravel\Roster\Enums\Packages::FILAMENT,
6364
'fluxui-free' => \Laravel\Roster\Enums\Packages::FLUXUI_FREE,
6465
'fluxui-pro' => \Laravel\Roster\Enums\Packages::FLUXUI_PRO,
6566
'inertia-laravel' => \Laravel\Roster\Enums\Packages::INERTIA_LARAVEL,

0 commit comments

Comments
 (0)