final | |
|---|---|
implements |
LoginProviderInterface |
The SDK's default login provider (PA-AUTHZ E-09, the Laravel-idiomatic default — cf. Cashier's
default Billable). It resolves the host's auth model via config('auth.providers.users.model') and
reads/writes the users.partner_id bridge + the login-state columns (login_counter, is_locked,
last_login, must_change_password), mapping into the {@see LoginRecord} DTO. So a stock Laravel
app that runs the bridge migration gets working login management with no host wiring — while any
host that stores logins elsewhere rebinds {@see LoginProviderInterface} with its own adapter.
The SDK still assumes nothing at the type level (it names no concrete host model); the default just
assumes the mainstream case (an Eloquent users table). Bound in SdkServiceProvider via bindIf,
so a host binding always wins.
| Methods | ||
|---|---|---|
public
|
forPartner(int $partnerId): ?LoginRecord
|
# |
public
|
attachedPartnerIds(): int[]
|
# |
public
|
create(int $partnerId, string $email, string $password): LoginRecord
|
# |
public
|
setLocked(int $partnerId, bool $locked): void
|
# |
public
|
resetPassword(int $partnerId, string $password): void
|
# |
public
|
delete(int $partnerId): void
|
# |