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 (
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners