# Worked extension examples

These developer-facing recipes are kept beside the package contract. Replace the example values with the site-specific records and data objects used by the calling workflow.

<!-- example: action applyLoginAuditSettings -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\LoginAudit\Actions\ApplyLoginAuditSettingsAction::class)->handle(...$inputs);
```

<!-- example: action buildLoginAuditsCsv -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\LoginAudit\Actions\BuildLoginAuditsCsvAction::class)->handle(...$inputs);
```

<!-- example: action buildLoginAuditsQuery -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\LoginAudit\Actions\BuildLoginAuditsQueryAction::class)->handle(...$inputs);
```

<!-- example: action detectSuspiciousLogin -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\LoginAudit\Actions\DetectSuspiciousLoginAction::class)->handle(...$inputs);
```

<!-- example: action recordLoginAuditPurge -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\LoginAudit\Actions\RecordLoginAuditPurgeAction::class)->handle(...$inputs);
```

<!-- example: action resolveLoginAuditIpAddress -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\LoginAudit\Actions\ResolveLoginAuditIpAddressAction::class)->handle(...$inputs);
```

<!-- example: action sendLoginAuditAdminAlert -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\LoginAudit\Actions\SendLoginAuditAdminAlertAction::class)->handle(...$inputs);
```

<!-- example: action shouldTrackAdminActivity -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\LoginAudit\Actions\ShouldTrackAdminActivityAction::class)->handle(...$inputs);
```

<!-- example: action shouldTrackUserIpAddresses -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\LoginAudit\Actions\ShouldTrackUserIpAddressesAction::class)->handle(...$inputs);
```

<!-- example: action updateLastSeenForActor -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\LoginAudit\Actions\UpdateLastSeenForActorAction::class)->handle(...$inputs);
```