Duncan McClean

@duncanmcclean
4 Followers
54 Following
136 Posts
Christ follower. Software Developer at @statamic (Laravel / Vue.js / Tailwind). Creator of the Runway & Simple Commerce addons for Statamic.
Websitehttps://duncanmcclean.com

Been playing around with Swift & SwiftUI this evening, out of curiosity.

After a few hours of brute-force programming (writing code, hoping it works and asking ChatGPT), I got something working...

It pulls from an API, maps the items to "structs" and lists the items.

It's very simple, but feels pretty powerful to be able to pick up my iPhone and see the app working in my hands! 🧑‍🚀

Laravel Prompts v0.1.23 includes a small quality-of-life improvement.

You can now use Ctrl + A inside MultiSelect & MultiSearch prompts to toggle all options.

https://github.com/laravel/prompts/pull/147

Allow selecting all options in a `multiselect` by duncanmcclean · Pull Request #147 · laravel/prompts

Currently, when using the multiselect component, if you want to select all of the available options, you have to manually hit space + down until you've toggled all the options. This is mostly fine....

GitHub

Just noticed my Runway addon has just reached 100 stars on GitHub! 🥳⭐

https://github.com/statamic-rad-pack/runway

statamic-rad-pack/runway

Eloquently manage your database models in Statamic. - statamic-rad-pack/runway

GitHub

In Statamic 5, addons will no longer need to bootstrap everything manually for tests.

They can simply extend our new `AddonTestCase` and that's it... everything just works.

Feels so good to get rid of unnecessary code 🧹

Inspired by Laravel 11's `install:broadcasting` command, I've created a few `install:*` commands for Statamic 5.

My favourite is `install:eloquent-driver`, which lets you easily swap flat-files for a database.

All powered by Laravel Prompts! 👨‍💻

Sidecar by Aaron Francis is awesome! 🔥

Just used it to download audio from YouTube videos & store them on S3.

Uses youtube-dl and some pretty simple Python code:

🚀 Simple Commerce v5.9.0

I've made a bunch of improvements to the Coupons feature in this release:
- Re-organised the blueprint
- Added a "Summary" to the sidebar
- Added the option to whitelist customers by their domains
- Added a "Start Date" to coupons

No surprise that I'm a big user of Raycast AI in my day-to-day workflow. ✨

#RaycastWrapped

For example, this release's changelog contains links to an issue and 2 PRs.

My release workflow passes the action the body of the changelog and it handles the rest... ✨

You can resolve the issue by adding this line to your Cashier `->checkout()` array: