Added paths when sccesfully creating these classes

This commit is contained in:
Matthew Biskas
2023-09-25 21:52:50 +02:00
parent 973dadd73f
commit e9a799e80f
12 changed files with 12 additions and 12 deletions
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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()`.");
@@ -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;
@@ -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()`.");
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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.");