Merge pull request #8722 from thethunderturner/3.x

Added paths when succesfully creating components from commands
This commit is contained in:
Dan Harrin
2023-10-06 09:36:47 +02:00
committed by GitHub
14 changed files with 15 additions and 15 deletions
@@ -67,7 +67,7 @@ class MakeFieldCommand extends Command
$this->copyStubToApp('FieldView', $viewPath);
}
$this->components->info("Successfully created {$field}!");
$this->components->info("Filament Form Field [{$path}] created successfully.");
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("Filament Form [{$path}] created successfully.");
return static::SUCCESS;
}
@@ -67,7 +67,7 @@ class MakeLayoutComponentCommand extends Command
$this->copyStubToApp('LayoutComponentView', $viewPath);
}
$this->components->info("Successfully created {$component}!");
$this->components->info("Filament Form Layout Component [{$path}] created successfully.");
return static::SUCCESS;
}
@@ -67,7 +67,7 @@ class MakeEntryCommand extends Command
$this->copyStubToApp('EntryView', $viewPath);
}
$this->components->info("Successfully created {$entry}!");
$this->components->info("Filament Infolist Entry [{$path}] created successfully.");
return static::SUCCESS;
}
@@ -67,7 +67,7 @@ class MakeLayoutComponentCommand extends Command
$this->copyStubToApp('LayoutComponentView', $viewPath);
}
$this->components->info("Successfully created {$component}!");
$this->components->info("Filament Infolist Layout Component [{$path}] created successfully.");
return static::SUCCESS;
}
@@ -181,7 +181,7 @@ class MakePageCommand extends Command
$this->copyStubToApp('PageView', $viewPath);
}
$this->components->info("Successfully created {$page}!");
$this->components->info("Filament Page [{$path}] created successfully.");
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("Filament Panel [{$path}] created successfully.");
$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("Filament Relation Manager [{$path}] created successfully.");
$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("Filament Resource [{$resourcePath}] created successfully.");
return static::SUCCESS;
}
@@ -82,7 +82,7 @@ class MakeThemeCommand extends Command
'viewPathPrefix' => $viewPathPrefix,
]);
$this->components->info("Successfully created resources/css/filament/{$panelId}/theme.css and resources/css/filament/{$panelId}/tailwind.config.js!");
$this->components->info("Filament theme [resources/css/filament/{$panelId}/theme.css] and [resources/css/filament/{$panelId}/tailwind.config.js] created successfully.");
if (! file_exists(base_path('vite.config.js'))) {
$this->components->warn('Action is required to complete the theme setup:');
@@ -101,7 +101,7 @@ class MakeThemeCommand extends Command
if (! file_exists($postcssConfigPath)) {
$this->copyStubToApp('ThemePostcssConfig', $postcssConfigPath);
$this->components->info('Successfully created postcss.config.js!');
$this->components->info('Filament Theme [postcss.config.js] created successfully.');
}
$this->components->warn('Action is required to complete the theme setup:');
@@ -57,7 +57,7 @@ class MakeSettingsPageCommand extends Command
'settingsClass' => $settingsClass,
]);
$this->components->info("Successfully created {$page}!");
$this->components->info("Filament Settings Page [{$path}] created successfully.");
return static::SUCCESS;
}
@@ -67,7 +67,7 @@ class MakeColumnCommand extends Command
$this->copyStubToApp('ColumnView', $viewPath);
}
$this->components->info("Successfully created {$column}!");
$this->components->info("Filament Table Column [{$path}] created successfully.");
return static::SUCCESS;
}
@@ -84,7 +84,7 @@ class MakeTableCommand extends Command
$this->copyStubToApp('TableView', $viewPath);
$this->info("Successfully created {$component}!");
$this->components->info("Filament Table [{$path}] created successfully.");
return static::SUCCESS;
}
@@ -205,7 +205,7 @@ class MakeWidgetCommand extends Command
$this->copyStubToApp('WidgetView', $viewPath);
}
$this->components->info("Successfully created {$widget}!");
$this->components->info("Filament Widget [{$path}] created successfully.");
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.");