diff --git a/packages/forms/src/Commands/MakeFieldCommand.php b/packages/forms/src/Commands/MakeFieldCommand.php index a0c40f5024..7af89b115f 100644 --- a/packages/forms/src/Commands/MakeFieldCommand.php +++ b/packages/forms/src/Commands/MakeFieldCommand.php @@ -67,7 +67,7 @@ class MakeFieldCommand extends Command $this->copyStubToApp('FieldView', $viewPath); } - $this->components->info("Successfully created {$field}!"); + $this->components->info(sprintf('%s [%s] created successfully.', "Form Field", $path)); return static::SUCCESS; } diff --git a/packages/forms/src/Commands/MakeFormCommand.php b/packages/forms/src/Commands/MakeFormCommand.php index 09f12a4ec9..dc5761bbca 100644 --- a/packages/forms/src/Commands/MakeFormCommand.php +++ b/packages/forms/src/Commands/MakeFormCommand.php @@ -101,7 +101,7 @@ class MakeFormCommand extends Command 'submitAction' => filled($model) ? ($isEditForm ? 'save' : 'create') : 'submit', ]); - $this->components->info("Successfully created {$component}!"); + $this->components->info(sprintf('%s [%s] created successfully.', "Livewire Form", $path)); return static::SUCCESS; } diff --git a/packages/forms/src/Commands/MakeLayoutComponentCommand.php b/packages/forms/src/Commands/MakeLayoutComponentCommand.php index 8cb9f7989e..f3ed2f3288 100644 --- a/packages/forms/src/Commands/MakeLayoutComponentCommand.php +++ b/packages/forms/src/Commands/MakeLayoutComponentCommand.php @@ -67,7 +67,7 @@ class MakeLayoutComponentCommand extends Command $this->copyStubToApp('LayoutComponentView', $viewPath); } - $this->components->info("Successfully created {$component}!"); + $this->components->info(sprintf('%s [%s] created successfully.', "Form Layout Component", $path)); return static::SUCCESS; } diff --git a/packages/infolists/src/Commands/MakeEntryCommand.php b/packages/infolists/src/Commands/MakeEntryCommand.php index bb3079094f..0f670a4ce4 100644 --- a/packages/infolists/src/Commands/MakeEntryCommand.php +++ b/packages/infolists/src/Commands/MakeEntryCommand.php @@ -67,7 +67,7 @@ class MakeEntryCommand extends Command $this->copyStubToApp('EntryView', $viewPath); } - $this->components->info("Successfully created {$entry}!"); + $this->components->info(sprintf('%s [%s] created successfully.', "Infolist Entry", $path)); return static::SUCCESS; } diff --git a/packages/infolists/src/Commands/MakeLayoutComponentCommand.php b/packages/infolists/src/Commands/MakeLayoutComponentCommand.php index 523c7078ff..bce07cc85e 100644 --- a/packages/infolists/src/Commands/MakeLayoutComponentCommand.php +++ b/packages/infolists/src/Commands/MakeLayoutComponentCommand.php @@ -67,7 +67,7 @@ class MakeLayoutComponentCommand extends Command $this->copyStubToApp('LayoutComponentView', $viewPath); } - $this->components->info("Successfully created {$component}!"); + $this->components->info(sprintf('%s [%s] created successfully.', "Infolist Layout", $path)); return static::SUCCESS; } diff --git a/packages/panels/src/Commands/MakePageCommand.php b/packages/panels/src/Commands/MakePageCommand.php index 168358ba70..ab7a91560b 100644 --- a/packages/panels/src/Commands/MakePageCommand.php +++ b/packages/panels/src/Commands/MakePageCommand.php @@ -181,7 +181,7 @@ class MakePageCommand extends Command $this->copyStubToApp('PageView', $viewPath); } - $this->components->info("Successfully created {$page}!"); + $this->components->info(sprintf('%s [%s] created successfully.', "Filament-Page", $path)); if ($resource !== null) { $this->components->info("Make sure to register the page in `{$resourceClass}::getPages()`."); diff --git a/packages/panels/src/Commands/MakePanelCommand.php b/packages/panels/src/Commands/MakePanelCommand.php index aba4b09a15..44705fd15e 100644 --- a/packages/panels/src/Commands/MakePanelCommand.php +++ b/packages/panels/src/Commands/MakePanelCommand.php @@ -55,7 +55,7 @@ class MakePanelCommand extends Command )); } - $this->components->info("Successfully created {$class}!"); + $this->components->info(sprintf('%s [%s] created successfully.', "Filament-Panel", $path)); $this->components->warn("We've attempted to register the {$class} in your [config/app.php] file as a service provider. If you get an error while trying to access your panel then this process has probably failed. You can manually register the service provider by adding it to the [providers] array."); return static::SUCCESS; diff --git a/packages/panels/src/Commands/MakeRelationManagerCommand.php b/packages/panels/src/Commands/MakeRelationManagerCommand.php index 00076b64be..ec0e7a9ad7 100644 --- a/packages/panels/src/Commands/MakeRelationManagerCommand.php +++ b/packages/panels/src/Commands/MakeRelationManagerCommand.php @@ -180,7 +180,7 @@ class MakeRelationManagerCommand extends Command 'tableHeaderActions' => $this->indentString($tableHeaderActions, 4), ]); - $this->components->info("Successfully created {$managerClass}!"); + $this->components->info(sprintf('%s [%s] created successfully.', "Filament Relation-Manager", $path)); $this->components->info("Make sure to register the relation in `{$resource}::getRelations()`."); diff --git a/packages/panels/src/Commands/MakeResourceCommand.php b/packages/panels/src/Commands/MakeResourceCommand.php index 2660e6661f..ef92719dbd 100644 --- a/packages/panels/src/Commands/MakeResourceCommand.php +++ b/packages/panels/src/Commands/MakeResourceCommand.php @@ -261,7 +261,7 @@ class MakeResourceCommand extends Command ]); } - $this->components->info("Successfully created {$resource}!"); + $this->components->info(sprintf('%s [%s] created successfully.', "Filament-Resource", $path)); return static::SUCCESS; } diff --git a/packages/tables/src/Commands/MakeColumnCommand.php b/packages/tables/src/Commands/MakeColumnCommand.php index 5642d083c0..32b9136df8 100644 --- a/packages/tables/src/Commands/MakeColumnCommand.php +++ b/packages/tables/src/Commands/MakeColumnCommand.php @@ -67,7 +67,7 @@ class MakeColumnCommand extends Command $this->copyStubToApp('ColumnView', $viewPath); } - $this->components->info("Successfully created {$column}!"); + $this->components->info(sprintf('%s [%s] created successfully.', "Column", $path)); return static::SUCCESS; } diff --git a/packages/tables/src/Commands/MakeTableCommand.php b/packages/tables/src/Commands/MakeTableCommand.php index 7ea2f6cc8e..ec0a2c4ced 100644 --- a/packages/tables/src/Commands/MakeTableCommand.php +++ b/packages/tables/src/Commands/MakeTableCommand.php @@ -84,7 +84,7 @@ class MakeTableCommand extends Command $this->copyStubToApp('TableView', $viewPath); - $this->info("Successfully created {$component}!"); + $this->components->info(sprintf('%s [%s] created successfully.', "Table", $path)); return static::SUCCESS; } diff --git a/packages/widgets/src/Commands/MakeWidgetCommand.php b/packages/widgets/src/Commands/MakeWidgetCommand.php index 4e0cae15e0..0a997a70c2 100644 --- a/packages/widgets/src/Commands/MakeWidgetCommand.php +++ b/packages/widgets/src/Commands/MakeWidgetCommand.php @@ -204,7 +204,7 @@ class MakeWidgetCommand extends Command $this->copyStubToApp('WidgetView', $viewPath); } - $this->components->info("Successfully created {$widget}!"); + $this->components->info(sprintf('%s [%s] created successfully.', "Filament Widget", $path)); if ($resource !== null) { $this->components->info("Make sure to register the widget in `{$resourceClass}::getWidgets()`, and then again in `getHeaderWidgets()` or `getFooterWidgets()` of any `{$resourceClass}` page.");