Laravel developers, ever wanted pluck()-like output with more than one column?
pluck() is intentionally designed for a single value.
Instead, retrieve only the columns you need and use map->only().
Need the collection keyed by id? mapWithKeys() does the trick.
Feed
Brought travian-elephant-finder, a Node tool that hunts the best oases to raid in Travian, back from three years dead in a weekend with an AI agent. It handled the boring rewrites (dead token scrape to a real login API, report cleanup), but the ideas that actually made it better were still mine. Short honest take on where AI helps and where it does not, with a demo video in the post.
dev.to/tegos/hunting-elephants-again-reviving-a-dead-travian-bot-with-an-ai-agent-4b4l

