schneespur/vendor/laravel/prompts/playground/datatable.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

27 lines
1.2 KiB
PHP

<?php
use function Laravel\Prompts\datatable;
use function Laravel\Prompts\info;
require __DIR__.'/../vendor/autoload.php';
$result = datatable(
label: 'Select a team member',
headers: ['Name', 'Twitter', 'Role'],
rows: [
'longueng' => ['A very very long one that is too long for the table to be honest and also this should never fit because it is actually wild but here we are', '@longun', 'Developer'],
'taylor' => ['Taylor Otwell', '@taylorotwell', 'CEO'.PHP_EOL.'Developer'],
'dries' => ['Dries Vints', '@driesvints', 'Developer'],
'james' => ['James Brooks', '@jbrooksuk', 'Developer'],
'nuno' => ['Nuno Maduro', '@enunomaduro', 'Developer'],
'mior' => ['Mior Muhammad Zaki', '@crynobone', 'Developer'],
'jess' => ['Jess Archer', '@jessarchercodes', 'Developer'],
'tim' => ['Tim MacDonald', '@timacdonald87', 'Developer'],
'joe' => ['Joe Dixon', '@_joedixon', 'Developer'],
'joet' => ['Joe Tannenbaum', '@joetannenbaum', 'Developer'],
'wendell' => ['Wendell Adriel', '@wendelladriel', 'Developer'],
'pushpak' => ['Pushpak Patel', '@pushpak1300', 'Developer'],
],
);
info("You selected: {$result}");