- add position

This commit is contained in:
2023-07-04 01:25:02 +02:00
parent 99f0bafe93
commit 996b1b4faf
5 changed files with 38 additions and 2 deletions

View File

@@ -17,7 +17,8 @@ class CreateCV extends Command
{phone : Phone number - with spaces}
{location?* : List of locations}
{--mission= : Description of mission}
{--rodo= : Description of rodo}';
{--rodo= : Description of rodo}
{--position= : Set position value}';
protected $description = 'Create CV';
@@ -29,6 +30,7 @@ class CreateCV extends Command
$locations = $this->argument('location');
$mission = $this->option('mission');
$rodo = $this->option('rodo');
$position = $this->option('position');
CV::query()
->create([
@@ -39,6 +41,7 @@ class CreateCV extends Command
'locations' => $locations,
'mission' => $mission,
'rodo' => $rodo,
'position' => $position,
]);
$this->info('Created!');