- append more informations from api
This commit is contained in:
@@ -15,7 +15,9 @@ class UpdateCV extends Command
|
||||
{--phone= : Phone number}
|
||||
{--begin-location : Add begin}
|
||||
{--add-location=* : Add locations}
|
||||
{--remove-location=* : Remove lcoations}';
|
||||
{--remove-location=* : Remove lcoations}
|
||||
{--mission= : Set new text value}
|
||||
{--rodo= : Set new text value}';
|
||||
|
||||
protected $description = 'Update CV element';
|
||||
|
||||
@@ -58,6 +60,13 @@ class UpdateCV extends Command
|
||||
$cv->locations = $locations;
|
||||
}
|
||||
|
||||
if ($mission = $this->option('mission')) {
|
||||
$cv->mission = $mission === 'null' ? null : $mission;
|
||||
}
|
||||
if ($rodo = $this->option('rodo')) {
|
||||
$cv->rodo = $rodo === 'null' ? null : $rodo;
|
||||
}
|
||||
|
||||
$cv->save();
|
||||
|
||||
$this->info('Updated!');
|
||||
|
Reference in New Issue
Block a user