Back to portfolio

Laravel hCaptcha

hCaptcha for Laravel: Blade, Livewire and Filament fields with a verification audit trail.

Laravel hCaptcha — Website preview

Why we wrote it

Adding hCaptcha to a Laravel form looks like a ten-minute job: drop the widget into the page, post the token to hCaptcha's siteverify endpoint, check success. We wrote this package because that ten-minute version gets several things wrong, and each of them shows up only in production, usually as a visitor who cannot submit a form and has no idea why.

A single-use token, checked by several guards

hCaptcha tokens are single-use. A naive integration that guards one form with both a validation rule and a route middleware sends the same token to hCaptcha twice, and the second check is told already-seen-response. The visitor solved the captcha correctly and still sees a failure. We route every entry point (the Blade component's form, the validation rule, the middleware and the Filament field) through one verifier that remembers its verdict for the rest of the request. The memo is keyed on a hash of the token plus a scope: the field, the executing Livewire component, the expected sitekey and the credential profile. The scope matters as much as the memo: a captcha solved for one field must not quietly authorise another field, component or sitekey in the same request.

Your sitekey is public

The sitekey sits in your HTML. Anyone can embed it on their own page, solve the challenge there, and post the genuine token to your form; siteverify answers success: true because the token really was solved against your key. The authoritative defence is the domain allowlist on the sitekey in the hCaptcha dashboard, which is off by default for new sitekeys. On the application side the package compares the hostname hCaptcha reports with an allowlist that defaults to the host of APP_URL. hCaptcha documents that hostname as browser-derived and not suitable for authentication, so we treat the check as a policy that catches careless misuse, not as proof of origin. Since version 3.0.0 an allowlist that resolves to nothing rejects the token rather than silently switching the check off, because an empty list is exactly the misconfiguration nobody notices.

Explicit rendering only

hCaptcha's auto mode scans the page once, on load. After a Livewire DOM patch, or in a modal opened later, the container is new and the visitor stares at an empty box; auto mode also injects its own response field outside the package's control. So every widget renders in explicit mode, discovered by a MutationObserver, and auto mode cannot be enabled at all.

Laravel's HTTP client, not a Guzzle pin

Verification goes through Laravel's own Http client, so the package never argues with your other dependencies about a Guzzle major version.

Fail closed, and say why

A missing secret throws MissingSecretException instead of rejecting every visitor in silence. An hCaptcha outage fails closed unless you opt into fail_open. A malformed response cannot turn into a pass, because success is compared with === true. Every result is a typed VerificationResult that tells a missing token from a spent one, an outage, a hostname mismatch or a high score.

Several sites, one application

Named credential profiles let one application serve sites with different sitekey and secret pairs. The profile is always chosen by server code, never by request input, and it is part of the memo key, so a verdict for one profile can never vouch for another.

An audit trail that does not lie

The optional audit table stores a SHA-256 hash of each token, never the token itself, and keeps two verdicts apart: success is hCaptcha's answer, accepted is the package's final answer after the hostname and score checks and the fail-open policy. They differ exactly when it matters: a genuine token from the wrong hostname, or an accepted submission during an outage. Personal data (IP, user agent, URL) is off by default.

Diagnostics and tests

Most captcha failures are configuration. php artisan hcaptcha:doctor reports what the configuration will actually do, with no network call and without printing the secret, and exits non-zero so a deployment can gate on it. HCaptcha::fake() replaces the verifier in tests and comes with assertions, and the widget renders a solvable fake while it is bound.

What it deliberately does not do

  • It does not rate limit. The middleware verifies a token; it does not limit how often someone submits. Pair it with Laravel's throttle middleware.
  • It does not promise that one solved captcha equals one submission inside a Livewire request. A client replaying the same component snapshot within one batched request shares the same memo key; we document that limitation instead of hiding it, and throttle is the mitigation.
  • It does not replace the dashboard's domain allowlist. Turn that on as well.

It is not the right tool if you are not on Laravel 12 or 13 with PHP 8.4, or if you want reCAPTCHA or Turnstile: it speaks to hCaptcha only. Its sibling for consent banners is Laravel Cookie Consent, and why we build on Laravel at all is in our article on Laravel for business applications.

Installation and usage

Requirements

  • PHP 8.4 or newer.
  • Laravel 12 or 13 (illuminate/* ^12.0|^13.0).
  • Optional: Livewire, for the automatic widget reset after a DOM patch, and Filament, for the form field. The package's own development dependencies are livewire/livewire ^3.6|^4.1 and filament/filament ^5.7.6.
  • An hCaptcha account with a sitekey and a secret key.

1. Install the package

composer require core45/laravel-h-captcha

The service provider Core45\HCaptcha\HCaptchaServiceProvider and the HCaptcha facade are registered through package discovery.

2. Get your keys

  1. Create an account at dashboard.hcaptcha.com.
  2. On the Sites tab, add a site and enter the hostnames the widget will be served from. You get a sitekey, which is public.
  3. On the Settings tab, copy your secret key. It belongs to your account, not to a single sitekey, and must stay server-side.
  4. In the sitekey's settings, turn on the domain allowlist and list your hostnames. It is off by default.

3. Set the environment variables

HCAPTCHA_SITEKEY=your-sitekey
HCAPTCHA_SECRET=your-secret-key

You do not need HCAPTCHA_HOSTNAMES if the form is served from the host in APP_URL. Set it (comma-separated) when the form lives on another host, or genuine submissions are rejected as hostname-mismatch. APP_URL must include a scheme, or no host can be read from it.

For local development and CI, hCaptcha publishes a test pair that always verifies. Never let it reach production; hcaptcha:doctor warns about it outside the local and testing environments.

HCAPTCHA_SITEKEY=10000000-ffff-ffff-ffff-000000000001
HCAPTCHA_SECRET=0x0000000000000000000000000000000000000000
# token produced by the test sitekey: 10000000-aaaa-bbbb-cccc-000000000001

4. Publish what you want to customise

php artisan vendor:publish --tag=hcaptcha-config       # config/hcaptcha.php
php artisan vendor:publish --tag=hcaptcha-lang         # lang/vendor/hcaptcha/{locale}/hcaptcha.php
php artisan vendor:publish --tag=hcaptcha-views        # resources/views/vendor/hcaptcha/*.blade.php
php artisan vendor:publish --tag=hcaptcha-migrations   # database/migrations/*_create_hcaptcha_verifications_table.php

Nothing is required. Run php artisan migrate only if you switch on the audit trail; verification itself needs no database table.

5. A working form

<form method="post" action="/contact">
    @csrf
    <x-hcaptcha />
    <button type="submit">Send</button>
</form>
use Core45\HCaptcha\Rules\HCaptcha;

$request->validate([
    'h-captcha-response' => [new HCaptcha],
]);

That is a complete, captcha-protected form. Everything below is optional.

Configuration reference

Every key in config/hcaptcha.php:

KeyEnv variableDefaultMeaning
sitekeyHCAPTCHA_SITEKEY (falls back to CAPTCHA_SITEKEY)nullPublic sitekey rendered into the widget.
secretHCAPTCHA_SECRET (falls back to CAPTCHA_SECRET)nullSecret key; a missing secret throws MissingSecretException.
profilesnone[]Named sitekey and secret pairs for multi-site installs.
endpointHCAPTCHA_ENDPOINThttps://api.hcaptcha.com/siteverifyVerification endpoint.
timeoutHCAPTCHA_TIMEOUT10HTTP timeout in seconds.
retriesHCAPTCHA_RETRIES0Additional attempts after the first on a transport error or non-2xx status. A retry of a token whose first attempt reached hCaptcha is told already-seen-response.
max_token_lengthHCAPTCHA_MAX_TOKEN_LENGTH8192Longer tokens are rejected with token-too-long without an HTTP call.
fail_openHCAPTCHA_FAIL_OPENfalseAccept submissions while hCaptcha is unreachable. The outage is logged either way.
send_sitekeyHCAPTCHA_SEND_SITEKEYtrueSend the sitekey with the verification so hCaptcha rejects a token minted for another key (sitekey-secret-mismatch).
hostnamesHCAPTCHA_HOSTNAMEShost of APP_URLHostnames the response may report, comma-separated.
hostnames_strictHCAPTCHA_HOSTNAMES_STRICTfalseAlso reject a response whose hostname is missing or not-provided.
hostnames_requiredHCAPTCHA_HOSTNAMES_REQUIREDtrueAn empty allowlist rejects the token. false skips the check instead and logs once per process.
max_scoreHCAPTCHA_MAX_SCOREnullCeiling for hCaptcha's risk score (higher means more bot-like). null skips the check.
fieldnoneh-captcha-responsePOST field the widget writes its token into.
localenonenullWidget language; null resolves the application locale at render time.
attributesnone['theme' => 'light', 'size' => 'normal']Rendered onto the widget as data-* attributes.
script.enablednonetrueWhether the widget renders hCaptcha's api.js tag itself.
script.urlnonehttps://js.hcaptcha.com/1/api.jsScript URL.
logging.enabledHCAPTCHA_LOGGINGfalseSwitch on the audit trail.
logging.tablenonehcaptcha_verificationsAudit table name.
logging.connectionHCAPTCHA_LOGGING_CONNECTIONnullDatabase connection for the audit table.
logging.store_ipHCAPTCHA_LOG_IPfalseStore the client IP (personal data).
logging.store_user_agentHCAPTCHA_LOG_USER_AGENTfalseStore the user agent (personal data).
logging.store_urlHCAPTCHA_LOG_URLfalseStore the request path, without the query string.
logging.log_missing_tokenHCAPTCHA_LOG_MISSING_TOKENfalseAlso record submissions with no token. Add throttle first.
logging.log_oversized_tokenHCAPTCHA_LOG_OVERSIZED_TOKENfalseAlso record tokens over max_token_length.
logging.retention_daysHCAPTCHA_RETENTION_DAYS90Rows older than this are removed by hcaptcha:prune; 0 keeps every row.
logging.migrationsHCAPTCHA_LOGGING_MIGRATIONSnullWhether the package loads its audit migration; null follows logging.enabled.

The config file contains no container calls, so it is safe under php artisan config:cache.

The Blade component

<x-hcaptcha />
<x-hcaptcha theme="dark" size="compact" />
<x-hcaptcha sitekey="10000000-ffff-ffff-ffff-000000000001" locale="es" id="contact-captcha" />
<x-hcaptcha :options="['size' => 'invisible']" />

Props of Core45\HCaptcha\View\Components\HCaptcha:

PropTypePurpose
sitekey?stringOverride the configured sitekey for this widget.
profile?stringNamed credential profile from hcaptcha.profiles. An explicit sitekey wins over it.
theme?stringFor example light or dark; becomes data-theme.
size?stringnormal, compact or invisible; becomes data-size.
locale?stringWidget language for this instance.
id?stringOverride the generated widget DOM id.
scriptboolWhether this instance renders the api.js tag (default true).
model?stringLivewire property the token is written into, for example captchaToken.
optionsarrayExtra data-* widget options passed through verbatim. theme and size props win over the same keys here.

Widget ids are deterministic: hcaptcha-page-1, hcaptcha-page-2 on a plain page and hcaptcha-<livewire-id>-1 inside a Livewire component. The hidden input is <id>-response, and a <p id="<id>-status" role="status"> live region shows the pending and error text. Attribute names are validated, not only escaped: a name that is not letters, digits and hyphens throws InvalidArgumentException. With no sitekey configured, the component renders nothing in production and a visible warning when app.debug is on; verification still fails closed.

Your own JavaScript callbacks (callback, expired-callback, chalexpired-callback, error-callback, open-callback, close-callback) name a global function; dotted paths resolve from window. The package writes the token to the hidden input first, then calls yours.

<x-hcaptcha :options="['callback' => 'app.onCaptcha', 'error-callback' => 'app.onCaptchaError']" />

In invisible mode nothing is shown until the form is submitted: the bootstrap intercepts submit, runs the challenge, writes the token and submits again, for plain forms and wire:submit alike. A second submit while a challenge is pending is ignored. To run it yourself, window.core45HCaptcha.execute(id) returns a Promise resolving to the token.

<form method="post" action="/contact">
    @csrf
    <x-hcaptcha size="invisible" />
    <button type="submit">Send</button>
</form>

The validation rule

The rule object is the preferred form, because it reports a specific message: hcaptcha::hcaptcha.missing (no token), hcaptcha::hcaptcha.unavailable (hCaptcha unreachable, failed closed), hcaptcha::hcaptcha.expired (spent or expired token) or hcaptcha::hcaptcha.failed (anything else).

use Core45\HCaptcha\Rules\HCaptcha;

$request->validate([
    'h-captcha-response' => [new HCaptcha],
]);

Its constructor takes named arguments, all optional: sitekey: (the sitekey the widget was rendered with, if not the configured one), profile:, action:, clientIp: and verifier:.

The string form is hcaptcha, with captcha as an identical alias:

$request->validate([
    'h-captcha-response' => 'hcaptcha',
]);

Do not pair either form with required. Both are implicit (the rule object sets public bool $implicit = true, the string rule is registered with Validator::extendImplicit()), so they already run on a missing token and report "Please complete the captcha." Adding required only lets Laravel's generic message win.

The route middleware

The hcaptcha alias (Core45\HCaptcha\Http\Middleware\VerifyHCaptcha) guards a route without touching its controller. Parameters: the field name, the sitekey the widget was rendered with, and a credential profile. On failure it throws ValidationException: a 422 for JSON, a redirect with errors for a normal form post.

Route::post('/contact', ContactController::class)->middleware(['throttle:10,1', 'hcaptcha']);
Route::post('/contact', ContactController::class)->middleware('hcaptcha:my-field');
Route::post('/signup', SignupController::class)->middleware('hcaptcha:h-captcha-response,,marketing');

Put it on the state-changing route only. It verifies every request it sees, including GET, so a route group that also serves the page with the form would fail that page. There is deliberately no method allowlist: one keyed on the request method could be spoofed with a _method override. It is safe to stack with the rule on the same field in a plain form, and the token is still spent once. The package does no throttling, so add throttle as in the first line above.

Livewire

<x-hcaptcha model="captchaToken" />
use Core45\HCaptcha\Rules\HCaptcha;

public string $captchaToken = '';

public function submit(): void
{
    $this->validate(['captchaToken' => [new HCaptcha]]);

    // ...
}

The widget wraps itself in wire:ignore, so a re-render never replaces hCaptcha's iframe. After every verification, accepted or rejected, the rule dispatches core45HCaptcha:reset with the field name and the bootstrap resets exactly that widget; you do not dispatch it yourself. If you do, an event without field resets every widget and one with id resets one. Guard a Livewire form with the rule alone: the middleware cannot scope by component, so stacked on a Livewire update route it would be told already-seen-response.

JavaScript entry points on window.core45HCaptcha: render(el), renderAll(), reset(id?), execute(id), markReady(), widgets, container(id).

Filament

use Core45\HCaptcha\Filament\Forms\Components\HCaptcha;

HCaptcha::make() // field name defaults to config('hcaptcha.field')
    ->theme('dark')
    ->size('compact'),

Also available: ->locale(), ->sitekey() and ->profile(). The field carries the rule out of the box and calls markAsRequired() for the asterisk only, not required(). It is dehydrated(false) on purpose, so the single-use token is never saved onto the model; validation still runs before that. With no usable sitekey it renders no widget but stays in validation, so the form still fails closed.

Credential profiles for multi-site installs

// config/hcaptcha.php
'profiles' => [
    'marketing' => [
        'sitekey' => env('HCAPTCHA_MARKETING_SITEKEY'),
        'secret' => env('HCAPTCHA_MARKETING_SECRET'),
    ],
],

A profile falls back to the global sitekey or secret for whichever half it leaves unset. Name the same profile where the widget renders and where the token is verified:

<x-hcaptcha profile="marketing" />
HCaptcha::make()->profile('marketing'),                          // Filament
new \Core45\HCaptcha\Rules\HCaptcha(profile: 'marketing'),        // validation rule

Route::post('/signup', SignupController::class)
    ->middleware('hcaptcha:h-captcha-response,,marketing');       // note the empty sitekey slot

The profile name must come from server code, never from request input: a visitor who could pick the profile could pick which secret vouches for their token. An unknown profile throws InvalidArgumentException. If a profile overrides only one half, hcaptcha:doctor warns that both halves must belong to the same hCaptcha account.

Manual verification

use Core45\HCaptcha\Facades\HCaptcha;

$result = HCaptcha::verify($request->input('h-captcha-response'), $request->ip());

if ($result->passed()) {
    // ...
}

The signature is verify(?string $token, ?string $clientIp = null, string|VerificationContext|null $scope = null). Without a scope the verdict is not memoized, so checking the same token twice makes a second request and hCaptcha answers already-seen-response. Pass the field name as the third argument to share a verdict with the rule guarding that field.

Core45\HCaptcha\Support\VerificationResult is a readonly value object with success (hCaptcha's verdict), accepted (the package's final answer, what passed() returns), hostname, challengeTs, score, scoreReasons, errorCodes, credit, serviceUnavailable and rejectedBy. Helpers: passed(), failed(), hasErrorCode(), tokenAlreadyUsed(), tokenExpired(), tokenMalformed(), tokenMissing(), isConfigurationError(), messageKey(), toArray(). Error codes follow hCaptcha's siteverify error table.

Each verification that actually reaches hCaptcha fires Core45\HCaptcha\Events\VerificationCompleted with result, context, tokenHash and a passed() shortcut. It does not fire for a memoized repeat, a missing token or an oversized one.

use Core45\HCaptcha\Events\VerificationCompleted;
use Illuminate\Support\Facades\Event;

Event::listen(function (VerificationCompleted $event): void {
    if ($event->result->isConfigurationError()) {
        // alert: this is a deployment problem, not a visitor problem
    }
});

Hostname and score policy

  • The allowlist defaults to the host of APP_URL; set HCAPTCHA_HOSTNAMES for several domains. A mismatch is rejected with rejectedBy: hostname-mismatch.
  • An allowlist that resolves to nothing is rejected with hostname-allowlist-empty while hostnames_required is on.
  • A missing or not-provided hostname passes with a log warning, unless HCAPTCHA_HOSTNAMES_STRICT=true, which rejects it as hostname-unknown.
  • max_score is a ceiling on a risk score, the inverse of reCAPTCHA v3, and applies only if your hCaptcha account returns a score. Above it, the token is rejected as score-too-high.
  • In all these cases success stays true and accepted is false.

If your domains live in a database, bind your own Core45\HCaptcha\Contracts\HostnameProvider (one method, hostnames(): array) with scoped(), not singleton(), so an Octane worker never serves a stale list. The provider is asked first on every verification; if it returns an empty array, hcaptcha.hostnames is used, and if that is empty too, the token is rejected. Caching is the provider's job.

use Core45\HCaptcha\Contracts\HostnameProvider;

// in a service provider's register()
$this->app->scoped(HostnameProvider::class, TenantDomainHostnameProvider::class);

Content Security Policy

// AppServiceProvider::boot()
\Core45\HCaptcha\HCaptchaManager::nonceUsing(fn () => \Illuminate\Support\Facades\Vite::cspNonce());

Both script tags carry the nonce, which also resolves from Vite::cspNonce() when your app calls Vite::useCspNonce(). HCaptchaManager::cspDirectives() returns the origins hCaptcha needs for script-src, frame-src, style-src and connect-src.

The audit trail

HCAPTCHA_LOGGING=true

Then run php artisan migrate. Each verification writes one row to hcaptcha_verifications: success, accepted, token_hash (SHA-256, never the raw token), hostname, challenge_ts, score, error_codes, rejected_by, timestamps, and ip, user_agent and url only when their toggles are on. A logging failure never fails the verification.

Query accepted, not success. success is hCaptcha's raw verdict; accepted is the package's verdict after the hostname and score checks. The model Core45\HCaptcha\Models\HCaptchaVerification has the scopes failed() (accepted is false), rejectedLocally() and forToken(string $tokenHash), the last one for spotting a replayed token.

Prune old rows on a schedule:

use Illuminate\Support\Facades\Schedule;

Schedule::command('hcaptcha:prune')->daily();
php artisan hcaptcha:prune                 # uses hcaptcha.logging.retention_days (default 90)
php artisan hcaptcha:prune --days=30
php artisan hcaptcha:prune --chunk=500

If you already have the table and the audit trail is off, set HCAPTCHA_LOGGING_MIGRATIONS=true so migrate:status keeps recognising it, or set it to false and own the published migration.

Diagnostics

php artisan hcaptcha:doctor

It checks that the sitekey and secret resolve, warns about the public test pair outside local and testing, checks every profile, shows the hostname source and what the allowlist resolves to, and, with the audit trail on, whether the table exists and whether personal data is recorded. It makes no network call, never prints the secret, and exits 1 on a problem, so you can use it as a deployment gate.

Testing

use Core45\HCaptcha\Facades\HCaptcha;
use Core45\HCaptcha\Testing\FakeVerifier;

$hcaptcha = HCaptcha::fake(); // accepts every token from here on

$this->post('/contact', ['h-captcha-response' => FakeVerifier::TOKEN])
    ->assertSessionHasNoErrors();

$hcaptcha->assertVerifiedFor('h-captcha-response');
$hcaptcha->assertVerifiedTimes(1);

HCaptcha::fake(bool $passes = true) returns a FakeVerifier with pass(), fail(string $errorCode = 'invalid-input-response'), respondWith(Closure|VerificationResult $answer), verifications(), assertVerified(?Closure $callback = null), assertVerifiedFor(string $field), assertVerifiedTimes(int $times) and assertNothingVerified(). A missing token is still answered as missing. While the fake is bound, the Blade component and the Filament field render a hidden input pre-filled with FakeVerifier::TOKEN and a [data-fake-hcaptcha-checkbox] button for browser tests.

If you would rather fake the HTTP layer, which also lets you assert the single-call guarantee:

use Illuminate\Support\Facades\Http;

Http::fake([
    'api.hcaptcha.com/*' => Http::response(['success' => true, 'hostname' => 'example.test']),
]);

$this->post('/contact', ['h-captcha-response' => 'any-token'])
    ->assertSessionHasNoErrors();

Http::assertSentCount(1);

Translations

22 locales ship with the package, Polish and Spanish among them. The keys are failed, missing, unavailable, expired, label, widget_error and widget_pending; publish them with --tag=hcaptcha-lang to change the wording.

Migrating from thinhbuzz/laravel-h-captcha

The package is a drop-in replacement: the CAPTCHA_SITEKEY and CAPTCHA_SECRET env keys, the Captcha facade (whose verify() still returns a bool) and the captcha rule keep working, and a published config/captcha.php fills in whatever hcaptcha.* leaves unset. Its http_client key is ignored with a log warning. Watch the hostname check: if your form is not served from the host in APP_URL, set HCAPTCHA_HOSTNAMES.

Troubleshooting and common mistakes

  • Every submission fails with hostname-mismatch: the form is served from a host that is not in the allowlist. Set HCAPTCHA_HOSTNAMES.
  • Every submission is rejected after an upgrade: the allowlist is empty, usually because APP_URL has no scheme. Run hcaptcha:doctor.
  • "The field is required" instead of the captcha message: remove required from the rule list.
  • The form page itself returns an error: the middleware is on a group that also serves the GET. Move it to the POST route.
  • already-seen-response in Livewire: the middleware is stacked on the Livewire route. Use the rule alone.
  • sitekey-secret-mismatch: the widget and the verification use different profiles or keys, or a profile mixes its own sitekey with the global secret.
  • Empty widget: no sitekey resolves. With APP_DEBUG=true the component shows a warning.

Upgrading

3.0.0 changes one behaviour: an empty hostname allowlist rejects the token instead of skipping the check. You are affected only if you set no HCAPTCHA_HOSTNAMES and your APP_URL has no readable host. Before deploying, set HCAPTCHA_HOSTNAMES or give APP_URL a scheme; HCAPTCHA_HOSTNAMES_REQUIRED=false restores the old behaviour as a stopgap. 2.0.0 changed ten behaviours, chiefly the split between success and accepted (branch on passed()), a new accepted audit column (run php artisan migrate) and component-scoped memoization; the full list is in docs/upgrading.md in the repository.

Licence

MIT. The package follows semantic versioning.

Source, issues and contributions

The code, the changelog and the issue tracker are on GitHub. Bug reports and pull requests are welcome there. The package is part of how we build web applications, and if your team would like it integrated for you, get in touch.

More work

Klimek Academy

Klimek Academy

Klimek Academy

An online shop and learning platform for the Holistic Fascia Release academy. It sells in-person courses, subscription courses and digital products in two languages and three currencies, and releases course chapters in step with each payment.

Read the case study
Clic A Tour

Clic A Tour

Clic A Tour

A multilingual marketplace for tours and activities worldwide, with a booking and payment flow in 13 languages and 19 currencies, and a back office that keeps supplier inventory in sync automatically.

Read the case study

Got a project that needs to move?

Tell us what you want to build or improve. We will reply with specifics: what we suggest, in what order, and what we will need from you.