company = $company; $this->user = $user; } /** * Execute the job. * * @return void */ public function handle() : ?CompanyToken { $ct = CompanyToken::create([ 'user_id' => $this->user->id, 'account_id' => $this->company->account->id, 'token' => Str::random(64), 'name' => $this->user->first_name. ' '. $this->user->last_name, 'company_id' => $this->company->id, ]); return $ct; } }