Add neutral diagnostic framework for future reporting modules: - DiagnosticReporterInterface, Registry, Manager, PayloadSanitizer - Laravel exception hook in bootstrap/app.php - Module permission declarations (requires_permissions in module.json) - Core diagnostic report points (module boot/install/update failures) - Module documentation update (moduldoku.md) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
21 lines
595 B
PHP
21 lines
595 B
PHP
<?php
|
|
|
|
use function Laravel\Prompts\text;
|
|
|
|
require __DIR__.'/../vendor/autoload.php';
|
|
|
|
$email = text(
|
|
label: 'What is your email address',
|
|
placeholder: 'E.g. taylor@laravel.com',
|
|
validate: fn ($value) => match (true) {
|
|
strlen($value) === 0 => 'Please enter an email address.',
|
|
! filter_var($value, FILTER_VALIDATE_EMAIL) => 'Please enter a valid email address.',
|
|
default => null,
|
|
},
|
|
hint: 'We will never share your email address with anyone else.',
|
|
transform: fn ($value) => strtolower($value),
|
|
);
|
|
|
|
var_dump($email);
|
|
|
|
echo str_repeat(PHP_EOL, 5);
|