Ejemplo n.º 1
0
 /**
  * Add data to DB scheme
  * @return null;
  */
 public function run()
 {
     Email::truncate();
     $pos = 1;
     Email::create(['type' => 'work', 'position' => $pos++, 'published' => true, 'address' => '*****@*****.**', 'principal' => true]);
     Email::create(['type' => 'pec', 'position' => $pos++, 'published' => true, 'address' => '*****@*****.**']);
     Email::create(['type' => 'mc-pec', 'position' => $pos++, 'published' => true, 'address' => '*****@*****.**']);
     Email::create(['type' => 'mc-tin', 'position' => $pos++, 'published' => true, 'address' => '*****@*****.**']);
     Email::create(['type' => 'mc-gmail', 'position' => $pos++, 'published' => true, 'address' => '*****@*****.**']);
 }
Ejemplo n.º 2
0
 /**
  * Return the principal email.
  * @return AxC\DataManagement\Models\Email
  */
 public function principal()
 {
     return EmailModel::principal();
 }