Verification
Create and check phone number (OTP) verifications.
Access the service through the Prelude facade or by injecting
AndreaAlhena\PreludeSdkLaravel\PreludeManager.
Create a verification
use AndreaAlhena\PreludeSdkLaravel\Facades\Prelude;
$verification = Prelude::verification()->create(
target: ['type' => 'phone_number', 'value' => '+39012345678'],
);
Check a code
$check = Prelude::verification()->check(
target: ['type' => 'phone_number', 'value' => '+39012345678'],
code: '123456',
);
Raw responses
Every service exposes a raw variant that returns the unwrapped API response:
$response = Prelude::verification()->raw->create(
target: ['type' => 'phone_number', 'value' => '+39012345678'],
);
For the full list of accepted parameters (metadata, options, signals) and response fields, see the Prelude verification reference.