- append more informations from api
This commit is contained in:
@@ -15,7 +15,9 @@ class CreateCV extends Command
|
||||
{recipient : Company}
|
||||
{email : E-mail address}
|
||||
{phone : Phone number - with spaces}
|
||||
{location?* : List of locations}';
|
||||
{location?* : List of locations}
|
||||
{--mission= : Description of mission}
|
||||
{--rodo= : Description of rodo}';
|
||||
|
||||
protected $description = 'Create CV';
|
||||
|
||||
@@ -25,6 +27,8 @@ class CreateCV extends Command
|
||||
$email = $this->argument('email');
|
||||
$phone = $this->argument('phone');
|
||||
$locations = $this->argument('location');
|
||||
$mission = $this->option('mission');
|
||||
$rodo = $this->option('rodo');
|
||||
|
||||
CV::query()
|
||||
->create([
|
||||
@@ -33,6 +37,8 @@ class CreateCV extends Command
|
||||
'email' => $email,
|
||||
'phone_number' => $phone,
|
||||
'locations' => $locations,
|
||||
'mission' => $mission,
|
||||
'rodo' => $rodo,
|
||||
]);
|
||||
|
||||
$this->info('Created!');
|
||||
|
Reference in New Issue
Block a user