schneespur/vendor/laravel/prompts/playground/select.php
Michael 2c63440ed8 Revert: move code back to project root from schneespur/ subdirectory
- Reverts the schneespur/ subdirectory restructure (b8e426b)
- Restores package.json and vite.config.js (needed for npm build, were
  removed in an earlier cleanup before the restructure)
- Updates public/build/ assets with current Vite output (new content hashes)
2026-05-17 18:24:26 +00:00

47 lines
1.3 KiB
PHP

<?php
use function Laravel\Prompts\select;
require __DIR__.'/../vendor/autoload.php';
$role = select(
label: 'Where are you from?',
options: [
'argentina' => 'Argentina',
'australia' => 'Australia',
'belgium' => 'Belgium',
'brazil' => 'Brazil',
'canada' => 'Canada',
'chile' => 'Chile',
'china' => 'China',
'colombia' => 'Colombia',
'egypt' => 'Egypt',
'france' => 'France',
'germany' => 'Germany',
'india' => 'India',
'italy' => 'Italy',
'japan' => 'Japan',
'kenya' => 'Kenya',
'mexico' => 'Mexico',
'morocco' => 'Morocco',
'nigeria' => 'Nigeria',
'new-zealand' => 'New Zealand',
'portugal' => 'Portugal',
'south-africa' => 'South Africa',
'south-korea' => 'South Korea',
'spain' => 'Spain',
'switzerland' => 'Switzerland',
'united-kingdom' => 'United Kingdom',
'united-states' => 'United States',
],
default: 'france',
validate: fn ($value) => match ($value) {
'spain' => 'Spain is not available yet.',
default => null
},
hint: 'The country will determine the currency and the timezone of the user.',
);
var_dump($role);
echo str_repeat(PHP_EOL, 5);