/** * Finish configuring Spark for the application. * */ public function booted() { Spark::useStripe()->noCardUpFront()->teamTrialDays(30); Spark::freeTeamPlan()->features(['First']); Spark::teamPlan('Basic', 'lucinda-basic')->price(100)->features(['First', 'Second', 'Third']); Spark::useRoles(['member' => 'Member', 'agent' => 'Agent', 'owner' => 'Owner', 'vip' => 'VIP', 'admin' => 'Administrator']); }
/** * Bootstrap any application services. * * @return void */ public function boot() { Spark::details($this->details); Spark::sendSupportEmailsTo($this->sendSupportEmailsTo); if (count($this->developers) > 0) { Spark::developers($this->developers); } if (count($this->roles) > 0) { Spark::useRoles($this->roles); } if ($this->usesTwoFactorAuth) { Spark::useTwoFactorAuth(); } if ($this->usesApi) { Spark::useApi(); } Spark::tokensCan($this->tokensCan); Spark::byDefaultTokensCan($this->byDefaultTokensCan); $this->booted(); if (Spark::billsUsingBraintree()) { $this->configureBraintree(); } }