Craig Potter πŸ’»πŸ’ (@_CPotter) header
Craig Potter πŸ’»πŸ’ (@_CPotter) profile picture

Developer using Laravel, Full time nerd, Punk rock fan. πŸ“¬DMs open

Plymouth UK
Joined October 2011
Photo by Craig Potter πŸ’»πŸ’ (@_CPotter)Photo by Craig Potter πŸ’»πŸ’ (@_CPotter)Photo by Craig Potter πŸ’»πŸ’ (@_CPotter)Photo by Craig Potter πŸ’»πŸ’ (@_CPotter)Photo by Craig Potter πŸ’»πŸ’ (@_CPotter)Photo by Craig Potter πŸ’»πŸ’ (@_CPotter)Photo by Craig Potter πŸ’»πŸ’ (@_CPotter)Photo by Craig Potter πŸ’»πŸ’ (@_CPotter)Photo by Craig Potter πŸ’»πŸ’ (@_CPotter)Photo by Craig Potter πŸ’»πŸ’ (@_CPotter)
Craig Potter πŸ’»πŸ’ retweeted
If you’re stressed out about these patches and you’re on Laravel Forge, this is how we are patching a large fleet of servers across organizations today using recipes and letting agents do the heavy lifting. scalpels.app/guides/patch-fo…
4
23
2,959
Craig Potter πŸ’»πŸ’ retweeted
Typo alert: Some customers saw quadrillion-dollar AWS billing estimates today. Slight miscalculation on our end (very slight πŸ˜…). We're fixing it now. No action needed on your end. Sorry for the confusion. Real question: what will you do with those trillions instead?
490
1,057
1,274
6,400
4,326,541
Craig Potter πŸ’»πŸ’ retweeted
Claude watching me write code manually after I hit the daily limit
403
7,226
426
90,827
4,644,970
Craig Potter πŸ’»πŸ’ retweeted
Claude Code isn't single-threaded. Run 4-6 sessions at once, each with its own git worktree. Plan in one, implement in another, debug in a third. You're never waiting. recombobulate.dev/tips/run-m…
1
3
133
Craig Potter πŸ’»πŸ’ retweeted
I never write down migrations. Down migrations are the least tested code in any Laravel app. They're written once and never run. And when you do need to roll back, you don't know beforehand what you need to do with the data would already be stored in the updated schema.
36
14
12
264
69,684
Craig Potter πŸ’»πŸ’ retweeted
2022: No salary increase 2023: No salary increase 2024: No salary increase 2025: No salary increase 2026 : Employee: Please accept my resignation. Boss: You’re doing great. Why are you resigning? Employee: I accepted an offer with a 95% base salary increase and guaranteed yearly salary cycles as long as I meet my performance goals set by my manager. 48 hours later... Boss: We will match the 95%, please stay, we need your work! Employee: Unfortunately, it’s too late. Friday is my last day. Leaders of organizations need to understand their teams’ motivation every month. Every employee is motivated by different things in different periods. Take care of your good employees before it is too late
441
5,507
171
49,076
4,296,747
Craig Potter πŸ’»πŸ’ retweeted
Getting into public speaking? Here are 10 things I've learnt over the last few years. james.brooks.page/blog/getti…
9
13
3
69
10,773
Craig Potter πŸ’»πŸ’ retweeted
2
12
4
61
5,491
Craig Potter πŸ’»πŸ’ retweeted
What are MCP servers, and why should I care? I took a look into MCP servers, what they are, how we might use them, to figure out if they're just the next hype train - or something actually useful. juststeveking.com/articles/w…
1
6
1
21
1,426
Craig Potter πŸ’»πŸ’ retweeted
You can now assign a name to queued closures, which will be displayed by the queue:work command. Makes it super easy to see which exact queued closure is being processed. βœ…
7
30
2
379
21,948
Laravel tip. You have a NULLABLE `BelongsTo` relationship? And you still want to provide a FALLBACK value if related model is empty? Use the `withDefault()` method when defining the relationship. Link to the docs: laravel.com/docs/12.x/eloque… #practicalLaravelDocs
1
9
74
3,932
Craig Potter πŸ’»πŸ’ retweeted
Ever wondered how Laravel handles multiple swappable drivers for Cache, Storage, etc. with a unified API? πŸ€” It's the Manager Pattern! And you can very easily create your own. Here's a quick guide: πŸ‘‡ laracasts.com/blog/the-manag… // Newton
3
21
1
174
8,733
Craig Potter πŸ’»πŸ’ retweeted
πŸ™‹β€β™‚οΈ Hold up, wait there, it's not the weekend just yet and I accidentally found the best way to share one time secrets - just use SSH & GitHub public keys 🀯 That way, only the person with the valid SSH key can access the secret πŸ”’ so it's as secure as git clone with Github πŸ”₯ Look at this awesomeness πŸ‘€ Hopefully @taylorotwell can see my secret with: ssh [email protected]
2
3
1
17
1,435
Craig Potter πŸ’»πŸ’ retweeted
Ever wanted to have your pet live in your macOS dock? Docko is now available - go download it for free on the AppStore today 🐢🐱
24
34
5
355
36,695
Craig Potter πŸ’»πŸ’ retweeted
I kind of added v1 of mouse support to Laravel Prompts πŸ–±οΈ because my pure PHP SSH server was being silly πŸ˜… We have drag & drop, hover, left/right click, and mouse wheel support 🀯 Here's a demo and repo πŸ™ What will you build? Big shoutout to @joetannenbaum 's blog post on hacking Laravel Prompts for fun and profit, and @aarondfrancis's 'soloterm/grapheme' library 😍
5
13
2
52
6,454
Craig Potter πŸ’»πŸ’ retweeted
Here's a cool Laravel 11 and 12 tip: Don't call route files inside other route files. Leverage bootstrap/app.php:
17
16
220
15,802
Craig Potter πŸ’»πŸ’ retweeted
Today on Laracasts, join @simonswiss as he walks through everything you need to about these starter kits. laracasts.com/series/simons-…
8
31
4,327
Reminder: only Laravel 11 and upcoming v12 will release security fixes. Laravel 10 is not officially supported anymore already. Read more here: laravel.com/docs/master/rele…
5
14
100
6,451