public static function boot() { parent::boot(); Company::created(function ($company) { AuthorizationToken::createAuthorizationToken($company); Credit::createCredit($company->id); Credit::createCredit($company->id, Credit::PAID); }); }