Sam Levy

4K posts

Sam Levy banner
Sam Levy

Sam Levy

@ImSamLevy

PHP and opinions! You can get all these things and more! Software Architect, Codemonger and talker about things. Talk to me about Laravel and Livewire! (he/him)

Brisbane, Australia Katılım Şubat 2009
227 Takip Edilen277 Takipçiler
Sabitlenmiş Tweet
Sam Levy
Sam Levy@ImSamLevy·
Some people have actually been buying some of my designs off #redbubble in the past few days. And it's not just my parents... although they are very supportive. If you want to give me small amounts of money in order to wear some things that I find funny: redbubble.com/people/samlevd…
English
0
1
1
0
Sam Levy
Sam Levy@ImSamLevy·
@gonedark That's the right call. The Vimeo SDK is pretty much just a terrible wrapper around Guzzle with very little extra effort except for setting the auth header.
English
0
0
0
14
Sam Levy
Sam Levy@ImSamLevy·
@LiamHammett Can you use a form request class _as_ an invokable controller? Controllers themselves aren't technically special classes - all of the magic happens in the router/service layer.
English
0
0
0
22
Liam Hammett
Liam Hammett@LiamHammett·
I've never really liked FormRequest classes... I like invokable controllers, I kind of wish it could just act like a form request and have dedicated validate/etc. methods itself to keep everything in one place
English
4
0
2
911
Sam Levy
Sam Levy@ImSamLevy·
@timacdonald87 @phpstan I feel like `#[\Override]` is doing a lot of heavy lifting there, and is probably signalling to phpstan that it's completely fine that the interface has changed. Which it shouldn't, because that's the entire point of interfaces.
English
1
0
1
22
Tim MacDonald
Tim MacDonald@timacdonald87·
Not sure how I feel about this TBH. I guess we should just never use named parameters against interfaces 🤔
Tim MacDonald tweet mediaTim MacDonald tweet media
English
2
3
30
5.5K
Sam Levy
Sam Levy@ImSamLevy·
It's @triplej #hottest100 day! Let's find out how out of touch the youths are with good music!
English
0
0
3
237
🥷
🥷@ninjaparade·
@jeffrey_way You mean 10, right? 10 is where you start.
English
1
0
0
503
Jeffrey Way
Jeffrey Way@jeffrey_way·
If you're trying phpstan for the first time, the top recommendation I have is to begin at level: 0. Don't succumb to peer pressure. If you go for max, you're quickly going to become overwhelmed. Start at 0, then increment slowly.
English
16
7
125
10.6K
Sam Levy
Sam Levy@ImSamLevy·
@marcelpociot Tilix or Kitty is where I'm at these days. Gotta love the tiling.
English
0
0
0
50
Marcel Pociot 🧪
Marcel Pociot 🧪@marcelpociot·
What's everyone's favorite terminal emulator at the moment? I'm still using iTerm but maybe it's time for a change 🤔
English
182
1
76
49.5K
The Lindsay McDowens Board Of Peace
The Lindsay McDowens Board Of Peace@doctormcdougall·
“Hey large pink sign company. Just checking on our KKK sign for Saturday night. Yes, that’s right, Krazy Kathy’s Karaoke, what else could it possibly stand for?”
The Lindsay McDowens Board Of Peace tweet media
English
7
4
53
5K
Sam Levy retweetledi
Stephen Rees-Carter
Stephen Rees-Carter@valorin·
I've been considering this for a while, so it's time to throw it out into the world... Securing Laravel is now open to sponsorships! 🎉 Your company can sponsor my weekly Security Tips, supporting my work in improving security within the Laravel and PHP communities .
English
1
2
5
530
Sam Levy
Sam Levy@ImSamLevy·
@_joshhanley @mattstauffer @branickweix When you're looking for a job it's a bad idea to list yourself as specific to any specific framework, unless you don't NEED the work, and you're trying to find work in a specific framework.
English
0
0
0
61
Josh Hanley 🇦🇺
Josh Hanley 🇦🇺@_joshhanley·
@mattstauffer @branickweix How would it look if I branded myself as a Livewire maintainer? 🤪 But yes agreed. If you’re a builder, Livewire is great! If you’re job hunting, you need to ensure you’re employable and fit the job description that you’re applying for.
English
1
0
4
254
Sam Levy
Sam Levy@ImSamLevy·
@michaeldyrynda You can only put public methods in an interface, so you can't hint at a private (or protected) set method. In theory just defining the get means that the interface says that it can be read, but doesn't define write behaviour, so you can't rely on writing.
English
1
0
0
72
Michael Dyrynda
Michael Dyrynda@michaeldyrynda·
I'm totally open to the possibility that I'm just thinking about this or implementing this the wrong way. I don't necessarily need for the property to be accessible in the global context, I just want to guarantee that the property is set
English
2
0
0
605
Michael Dyrynda
Michael Dyrynda@michaeldyrynda·
Is it just me, or is there no way to define an asymmetric property on an interface in PHP? I want to make sure that a `$name` property is _always_ defined on a concrete class, but also not allow it to be manipulated. Seems the only way to reliably enforce this is via a method
English
2
0
1
927
Sam Levy retweetledi
NativePHP
NativePHP@nativephp·
🔥 It's here: NativePHP for Mobile has officially launched. Build native Android & iOS apps with just @LaravelPHP, a ton of coffee and a bit of magic. 📱 Android support just landed! 📚 Docs are live and production-ready ⚡️ Start shipping today! nativephp.com/mobile
English
21
85
367
38K
Sam Levy
Sam Levy@ImSamLevy·
@RowdyRabouw It's an AI conference. You really expect Humans to be in charge of any of that?
English
0
0
0
5
Sam Levy
Sam Levy@ImSamLevy·
@michaeldyrynda @MidgetK To your actual question, though, @michaeldyrynda - yes, I've used a few recently that have variations on returning a 200 with an error code in the body. I've resolved it variously through Saloon middleware, Laravel Data, and a few other ways depending on the API.
English
0
0
0
68
Sam Levy
Sam Levy@ImSamLevy·
@michaeldyrynda @MidgetK Hey, my APIs have zero complaints, EVER. Someone would have to use them in order to complain, so I just prevent that, and we're golden.
English
1
0
0
73
Michael Dyrynda
Michael Dyrynda@michaeldyrynda·
Anybody come across an API recently that gives you an error with a `200 OK` response? Is it one you can share with me?
English
19
0
10
3.7K
Sam Levy
Sam Levy@ImSamLevy·
@michael_timbs How do you run out of string before the petrol runs out? Still... Cheaper than replacing the electric ones when the battery dies.
English
0
0
2
43
Michael Timbs
Michael Timbs@michael_timbs·
Feels like such a waste that you have to throw these things out and buy a new one just because the cord runs out.
Michael Timbs tweet media
English
2
0
4
353
Sam Levy
Sam Levy@ImSamLevy·
@tobias_petry @timacdonald87 Not exactly. It's built in rust, but has better explanations of why something should be changed, as well as the ability to work from your .editorconfig for styling. Its opinions on "clean" certainly fit better with me than prettier.
English
0
0
0
35
Sam Levy
Sam Levy@ImSamLevy·
@marcelpociot Build it into tinkerwell, and let it build URLs from the route list ;)
English
0
0
1
44
Marcel Pociot 🧪
Marcel Pociot 🧪@marcelpociot·
Ugh I'm so sick of all these Postman, Insomnia, Paw, etc. apps They are extremely bloated, require signups, store "collections" on disk, ... Might need to build my own?
English
482
21
1.6K
197.8K