コード例 #1
0
 function __construct()
 {
     $this->contact = new \stdClass();
     $this->contact->vid = "1234";
     $this->contacts = [$this->contact, $this->contact, $this->contact];
     parent::__construct('demo');
 }
コード例 #2
0
 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     $this->app->bind(MailChimp::class, function () {
         return new MailChimp(env('MAILCHIMP_API_KEY'));
     });
     $this->app->bind(HubSpotService::class, function () {
         return HubSpotService::make(env('HUBSPOT_API_KEY'));
     });
 }