💻 Tech Lead @futureplc 🎥 Making videos at piped.video/@imliamhammett

United Kingdom
Joined September 2009
I'm excited to announce the TemPHPest extension is on the Visual Studio Code marketplace to pick up! It might not be groundbreaking, but it solves a dozen papercuts I've found working with PHP in VScode - and it's made my life easier! marketplace.visualstudio.com… #php #vscode
Liam Hammett retweeted
🧐 Kinda crazy thing you can do with lazy objects in PHP 8.4 Easily make Eloquent execute queries "just in time" I'm doing this in Livewire 4 to make sure we're only executing database queries that are actually used in your components. Here's a quick macro to demonstrate
8
21
6
302
Liam Hammett retweeted
We asked @stauffermatt, the head of @TightenCo, to share some of the lessons he learned over the years. In his latest episode, he talks about how to organize and structure the various positions of a dev team. Also, hear about a time when he was never more unhappy at Tighten.
2
3
42
0
I can't believe we've gotta wait 5 months to see @stauffermatt's whole Laracasts course 😭
2
11
🎃 Halloween is the time for scares, but not from your database! Prohibit destructive commands in production in your @laravelphp app to make sure you can't accidentally run `artisan migrate:fresh` and keep your data safe.
1
6
39
Filament's static `configureUsing` methods might just be my favourite configuration API for anything ever
2
1
14
TIL if you press the "Escape" key while writing a Tweet/reply it'll just blank it. No undo, no confirmation, it just blanks everything
1
1
Kinda shocked there's no @laracasts course on Pulse
4
16
🔥You should always force your application to use HTTPS in production. Here's how you can do it with Laravel: 1️⃣ Ensure all generated links use https (configurable with the URL facade) 2️⃣ Redirect users from http to https (with a middleware)
FontAwesome 5 was the last good version of FontAwesome Because it didn't require a damned subscription plan for an icon pack
4
15
Hot take: Every new PHP app should be built on FrankenPHP. It's just better.
🔥 What if every `artisan make` command followed your style? Run `artisan stub:publish` to copy all the files to the `/stubs` directory, then you can change them how you like. Add strict types, clean up docblocks, get rid of that pesky `down` migration method, whatever you want
Liam Hammett retweeted
Thanks to @LiamHammett, we’ve just rolled out dynamic node package manager support in Boost v1.5.0🔥 From now on, Boost will automatically detect and include the package manager you’re using in the generated guidelines whether it’s npm, pnpm, yarn or bun. ✨
6
21
There’s nothing quite like being trapped in an airport after security but before the whole lounge area is open… like a hundred people just piled in a hallway here
1
1
🔥 Never use the native PHP sleep() in Laravel - use the Sleep facade instead! Then in your tests, you can fake the sleeps so the tests still run quickly, while being able to make assertions against how much time was slept in your app code.
10
11
156