Remove routes for modals or use --simple?

Good afternoon, I have a question. To create a simple resource with modals, I know that you use php artisan make:filament-resource Customer --simple, but initially, I created the resource with the default pages for edit and create. Now I realize that I actually wanted a modal and did the following: removed the routes:
public static function getPages(): array
{
return [
'index' => Pages\ListCategory::route('/'),
// Removed:
// 'create' => Pages\CreateCategory::route('/create'),
// 'edit' => Pages\EditCategory::route('/{record}/edit'),
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListCategory::route('/'),
// Removed:
// 'create' => Pages\CreateCategory::route('/create'),
// 'edit' => Pages\EditCategory::route('/{record}/edit'),
];
}
Now they are modals, but my question is: is this approach really okay? Would there be any issues with this method, or should I use --simple? I noticed that --simple creates a slightly different structure, only creating a management page in the resources folder.
1 Reply
Want results from more Discord servers?
Add your server