/**
  * Execute the job.
  *
  * @return void
  */
 public function handle(ContactRepository $repository)
 {
     // Create Contact in the Datastore
     $contact = $repository->createOrUpdate(['firstname' => $this->firstname, 'lastname' => $this->lastname, 'email' => $this->email, 'website' => $this->website, 'phone' => $this->phone]);
     // Trigger Event to Update All the Clients
     pusher()->trigger('contacts', 'create', json_encode($contact));
 }
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(ContactRepository $repository)
 {
     $contact = $repository->get($this->id);
     $repository->remove($contact);
     // Trigger Event to Update All the Clients
     pusher()->trigger('contacts', 'remove', json_encode($contact));
 }
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(ContactRepository $repository)
 {
     // Update Contact in the DataStore
     $contact = $repository->createOrUpdate(['firstname' => $this->firstname, 'lastname' => $this->lastname, 'email' => $this->email, 'phone' => $this->phone, 'website' => $this->website], $this->id);
 }