Hi ainahid,
You can create a Filament resource inside a subfolder by simply specifying the full path when running the Artisan command. For example, if you want to put your resource under a Blog folder:
php artisan make:filament-resource Blog/Post
This will create a PostResource inside:
app/Filament/Resources/Blog/PostResource.php
Filament automatically handles subfolders, so you can also create related resources like:
php artisan make:filament-resource Blog/Author
php artisan make:filament-resource Blog/Comment
They’ll all be grouped neatly under app/Filament/Resources/Blog/.
If you want them to appear in a specific navigation group within the panel, you can also set the $navigationGroup property inside each resource, for example:
protected static ?string $navigationGroup = 'Blog';
That way, all your Blog resources will appear together in the sidebar.
Hope that helps!
— Eimmaa Rose