Sign in

Tim MacDonald

@tim.macdonald.au
1.8K followers 239 following 81 posts

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

PostsRepliesMedia
Tim MacDonald @tim.macdonald.au · 20/04/2025
Wanna shorten imports when using Laravel Wayfinder? Add a custom Vite alias pointing to whatever directory makes sense for your project.
0100
Tim MacDonald @tim.macdonald.au · 08/04/2025
🧼
030
Tim MacDonald @tim.macdonald.au · 04/04/2025
Laravel Wayfinder integrates perfectly with Inertia, however it also pairs lovely with Axios and the fetch API. ✨✋⛵️
1162
Tim MacDonald @tim.macdonald.au · 09/12/2024
🍭 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.
172
Tim MacDonald @tim.macdonald.au · 18/11/2024
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.
3240
Tim MacDonald @tim.macdonald.au · 13/11/2024
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`.
040
Tim MacDonald @tim.macdonald.au · 13/11/2024
080
Tim MacDonald @tim.macdonald.au · 03/11/2024
Starting the week with a keycap refresh 💅
Mechanical keyboard with GMK dot keycaps
4360