Tim MacDonald
banner
tim.macdonald.au
Tim MacDonald
@tim.macdonald.au
Doggos, hypermedia, and core team at @laravel.com

https://tim.macdonald.au
Wanna shorten imports when using Laravel Wayfinder?

Add a custom Vite alias pointing to whatever directory makes sense for your project.
April 20, 2025 at 2:41 AM
🧼
April 8, 2025 at 3:01 AM
Laravel Wayfinder integrates perfectly with Inertia, however it also pairs lovely with Axios and the fetch API.

✨✋⛵️
April 4, 2025 at 9:00 PM
🍭 Refactoring a callback to a first-class callable? Heck yea.

But also…

You might be subtly changing behaviour by implicitly passing additional arguments, especially with collection pipelines.
December 9, 2024 at 10:36 PM
Learnt something new about Laravel today.

I always thought Laravel’s `$fallback` value kicked in when a retrieved value was either missing OR `null`.

I always thought these two approaches were equivalent.

Always learning.
November 18, 2024 at 2:18 AM
A pattern I’ve been enjoying recently is extracting binding callbacks from Laravel service providers into smaller dedicated factory classes and then replacing the anonymous closure with the factories invoke method.

Just want the container to accept `callable` rather requiring `Closure`.
November 13, 2024 at 11:27 PM
November 13, 2024 at 5:49 AM
Starting the week with a keycap refresh 💅
November 3, 2024 at 10:41 PM