Tim MacDonald
@tim.macdonald.au
📤 1722
📥 239
📝 79
Doggos, hypermedia, and core team at
@laravel.com
https://tim.macdonald.au
✍️ New post: Sticky database connections across requests with Laravel 🍯 Support Laravel's `sticky` option for read write database replicas across different requests.
tim.macdonald.au/sticky-datab...
loading . . .
Sticky database connections across requests with Laravel
Support Laravel's `sticky` option for read write database replicas across different requests
https://tim.macdonald.au/sticky-database-connections-across-requests-with-laravel/
25 days ago
0
6
0
reposted by
Tim MacDonald
3 months ago
We've had a fair number of requests for Nightwatch setup instructions on Vapor, so we put together a guide to help get you started. Nightwatch 🤝 Vapor
nightwatch.laravel.com/docs/guides/...
loading . . .
Laravel Vapor - Laravel Nightwatch
Get started with Nightwatch on Vapor
https://nightwatch.laravel.com/docs/guides/vapor
0
15
8
reposted by
Tim MacDonald
Laravel
3 months ago
We just shipped Nightwatch: application monitoring & logging obsessively optimized for Laravel. ✨ Start with a single command 📊 Monitor every event ⏱️ Review precise timelines & logs ⚠️ Hear less noise with smart alerts And much more, including a free plan for anywhere you deploy Laravel apps.
loading . . .
6
77
33
reposted by
Tim MacDonald
Laravel
5 months ago
laravel new bluesky
30
211
57
Wanna shorten imports when using Laravel Wayfinder? Add a custom Vite alias pointing to whatever directory makes sense for your project.
5 months ago
0
9
0
Opened a framework PR to introduce a memoized cache driver. `Cache::memo()->get($key);`
github.com/laravel/fram...
loading . . .
[12.x] Introduce memoized cache driver by timacdonald · Pull Request #55304 · laravel/framework
We put things in the cache because the cache is fast; that doesn't mean hitting the cache is free. This PR introduces a memoized cache driver. This new driver is a decorator around other cache ...
https://github.com/laravel/framework/pull/55304
6 months ago
5
24
2
reposted by
Tim MacDonald
Marty Friedel
6 months ago
I'm fascinated with the data Nightwatch is collecting This new site for a client is eye-opening to not only the quantity of 4xx requests (targeting pre-me routes including `wp-admin`), but also the impact these have on the server's capability 🤯 And this data now drives change for our server mgmt
2
17
5
🧼
add a skeleton here at some point
6 months ago
0
3
0
reposted by
Tim MacDonald
JL
6 months ago
How does the laravel team keep cooking this stuff up!? Wayfinder looks amazing!
1
7
1
✍️ Fresh post: Fake expectations A testing fake with named assertions or Pest PHP's expectation API: ¿Por Qué No Los Dos?
tim.macdonald.au/fake-expecta...
loading . . .
Fake expectations
A testing fake with named assertions or Pest PHP's expectation API: ¿Por Qué No Los Dos?
https://tim.macdonald.au/fake-expectations/
6 months ago
0
3
1
Laravel Wayfinder integrates perfectly with Inertia, however it also pairs lovely with Axios and the fetch API. ✨✋⛵️
6 months ago
1
16
2
ICYMI
add a skeleton here at some point
6 months ago
0
1
0
reposted by
Tim MacDonald
Joe Tannenbaum
6 months ago
From the galaxy brain of
@tim.macdonald.au
, with just a dash of Tannenbaum, presenting Laravel Wayfinder. Automatically generate TS functions for your controllers/named routes so you can call your endpoints directly in your client code. Available now in public beta.
github.com/laravel/wayf...
loading . . .
GitHub - laravel/wayfinder
Contribute to laravel/wayfinder development by creating an account on GitHub.
https://github.com/laravel/wayfinder
5
52
14
reposted by
Tim MacDonald
Joe Tannenbaum
6 months ago
Little
@tim.macdonald.au
x
@joe.codes
beta package drops tomorrow, I... love this one. And am very excited.
4
13
2
✍️ Mark all files as un-viewed in a GitHub pull request GitHub has a feature to mark individual files as viewed while reviewing a pull request. I wanted the ability to mark _all_ files as un-viewed.
tim.macdonald.au/mark-all-fil...
loading . . .
Mark all files as un-viewed in a GitHub pull request
Use the "viewed" feature on GitHub PRs? Me too, and I wanted to ability to mark *all* files as un-viewed.
https://tim.macdonald.au/mark-all-files-unread-github
6 months ago
1
3
2
Merged 🫡
add a skeleton here at some point
6 months ago
0
6
1
Opened a PR to add the `pipe` method to the query builders. Adds the ability to create invokable _action_ scopes to complement tappable scopes.
github.com/laravel/fram...
loading . . .
[12.x] Add `pipe` method query builders by timacdonald · Pull Request #55171 · laravel/framework
This PR introduces a pipe method to the base query builder and eloquent query builder. The functionality of this method is the same as the collection pipe method. $records = DB::query() ->fr...
https://github.com/laravel/framework/pull/55171
6 months ago
1
7
1
“Because of their excessive reverence for omens, they let the words of others guide them rather than their own intuition, and they creep down alleyways picking up advice from other people’s remarks, thinking with their ears, so to speak, not with their brains.”
8 months ago
0
5
0
reposted by
Tim MacDonald
patak
8 months ago
Respect to
@tim.macdonald.au
and the Laravel community for understanding the decision to release breaking changes in a patch and gracefully handling the disruption to their users. And shoutout to other maintainers in the ecosystem for helping their users upgrade and stay safe.
add a skeleton here at some point
1
30
3
reposted by
Tim MacDonald
Zuzana Kunckova
10 months ago
I just published my 27th post. A bit personal and vulnerable, and I really wonder how I'm going to feel about it in the morning, but for now - here it is:
www.zuzana-k.com/articles/som...
loading . . .
Some dreams were only ever meant to be dreams
Zuzana K - Web developer, Founder, Public Speaker, Writer
https://www.zuzana-k.com/articles/some-dreams-were-only-ever-meant-to-be-dreams
24
93
19
reposted by
Tim MacDonald
Ben Smith
10 months ago
i just learned that you can set a custom font in Slack by typing “/slackfont <custom font on your system>”! i’m not a roboto mono fan myself but do love monospaced fonts. reference:
www.theverge.com/21432669/sla...
loading . . .
How to change your font in Slack
You could change it to any font you have locally.
https://www.theverge.com/21432669/slack-font-change-how-to
2
8
8
Wanna make Slack better? Settings: 1. Appearance > Font = Robot Mono 2. Messages > Theme =Compact 3. Messages > Names = Just display names 4. Messages > Additional options: uncheck “Display information about who is currently typing a message” Give it a week. I don’t even hate Slack anymore.
add a skeleton here at some point
10 months ago
22
81
13
🍭 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.
10 months ago
1
7
2
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.
10 months ago
3
24
0
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`.
11 months ago
0
4
0
11 months ago
0
8
0
reposted by
Tim MacDonald
Chris Morrell
11 months ago
One of the APIs I'm most happy with is in [Gretel](
github.com/glhd/gretel
) — defining breadcrumbs right next to your routes is *so nice.* Adding a route? Just chain the breadcrumb on. Removing one? Just remove the whole block, and the breadcrumb config is gone, too!
4
32
3
Starting the week with a keycap refresh 💅
11 months ago
4
37
0
you reached the end!!
feeds!
log in