chore: support package console ui improvement

This commit is contained in:
Shuvro Roy
2022-10-13 23:16:30 +06:00
parent 14a769396f
commit e41ce1b42f
3 changed files with 3 additions and 3 deletions
@@ -12,7 +12,7 @@ trait CanManipulateFiles
{
foreach ($paths as $path) {
if ($this->fileExists($path)) {
$this->error("{$path} already exists, aborting.");
$this->components->error("{$path} already exists, aborting.");
return true;
}
@@ -22,7 +22,7 @@ trait CanValidateInput
);
if ($validator->fails()) {
$this->error($validator->errors()->first());
$this->components->error($validator->errors()->first());
$input = $this->validateInput($callback, $field, $rules);
}
@@ -21,7 +21,7 @@ class UpgradeCommand extends Command
$this->call($command);
}
$this->info('Successfully upgraded!');
$this->components->info('Successfully upgraded!');
return static::SUCCESS;
}