- add position
This commit is contained in:
@@ -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!');
|
||||
|
Reference in New Issue
Block a user