I've been hacking on a side project in Laravel that may never see the light of day, but I think it's worth talking about the building blocks I used for it. For context, I've been tracking bigger personal expenses in a Google Sheet for many years.
In Part 1 I want to describe the command I built with Laravel Prompts to import the CSV file.
private function getUserId(): void { do { $userId = search( label: 'What is the user\'s email?', options: fn(string $value) => strlen($value) > 0 ?
private function getFileName(): void { do { $this->fileName = select( label: 'Select file to import (