Dan Mason

886 posts

Dan Mason banner
Dan Mason

Dan Mason

@danmasonmp

🖥 Senior developer @kirschbaum_dev 🐺 Wolves FC season ticket holder 🚀 Rocket League try hard

Wolverhampton, England Katılım Ekim 2011
108 Takip Edilen194 Takipçiler
Dan Mason retweetledi
Luis Dalmolin
Luis Dalmolin@luisdalmolin·
🚀 🤖 I’m excited to release the first version of Laravel Loop, an MCP Server for Laravel that allows you to create custom tools and connect your Laravel app directly to AI tools like Cursor, Claude Code, Claude Desktop, and others. Let me show you how it works in... 👇
English
9
32
270
28.4K
Dan Mason
Dan Mason@danmasonmp·
@michaeldyrynda @gonedark @laravelnews I have been doing this for years, always try and gear tests to give the most useful output on failure. However, if in the code being tested this job is dispatched within a try/catch (Throwable) then it will catch the assertions/expectation exception and hide the failure.
English
1
0
0
48
Michael Dyrynda
Michael Dyrynda@michaeldyrynda·
@gonedark @laravelnews Like if the closure you pass to `assertPushed` throws an exception? Maybe something that's been resolved since, I can't think of any issues i've run into it, but I also haven't seen as many variations of code as you have. No doubt some edge cases, but there be dragons
English
1
0
0
346
Michael Dyrynda
Michael Dyrynda@michaeldyrynda·
I touched on it on the last @laravelnews podcast, but thought it warranted further explanation. Here's how I go about testing queued jobs have been dispatched as expected, and how I avoid lose my mind chasing down failures
English
6
9
59
8.9K
Pert Soomann
Pert Soomann@PerttiSoomann·
@ollieread Tools often try to do too much and it shows when developers are trying to show off ideas of coding rather than ideas of usability. I know from personal experience it's so hard to keep scope low and on point. Anything out there in PHP sphere that's ok-ish?
English
1
0
1
49
ollieread
ollieread@ollieread·
PHP static site generators have such inherent complexity through convention-based approaches, that I think it may just be easier to build the site static myself. Just like the old days.
English
1
0
1
313
Dan Mason retweetledi
Kirschbaum Development
Kirschbaum Development@kirschbaum_dev·
Laravel Sail is a great tool for developing Laravel applications without having to set up services on your local machine. If you've been looking for a detailed guide to @laravelphp Sail, Cole Shirley has just the thing for you! Link in thread.
Kirschbaum Development tweet media
English
1
7
31
2.9K
Dan Mason retweetledi
Kirschbaum Development
Kirschbaum Development@kirschbaum_dev·
Another 🔥 @vuejs tip from @brandonferens! Watchers only fire when the reactive object they are watching changes, but sometimes you may need to fire the watcher as soon as the component is mounted. Pretty easy to do:
Kirschbaum Development tweet media
English
0
4
8
293
Dan Mason retweetledi
Caleb Porzio ⚡️
Caleb Porzio ⚡️@calebporzio·
Wrote and shipped this Livewire feature in like an hour this morning (probably broken af), but check it: wire:current ✨✨✨ Super clean way to detect if the current page matches a link and slap some Tailwind on there (works with wire:navigate and persisted layouts obv)
Caleb Porzio ⚡️ tweet media
English
19
25
298
27.5K
Dan Mason
Dan Mason@danmasonmp·
@PovilasKorop @filamentphp Definitely a useful function Povilas! Recently had a need to only render urls if the user could actually access the linked page. For example, if the user needs to a specific permission. Used it in a nice trait which you can see on this gist: gist.github.com/dmason30/f2970…
English
0
0
2
78
Dan Mason
Dan Mason@danmasonmp·
@JackEllis If you are working with objects you can just use optional chaining instead? Assuming same structure:
Dan Mason tweet media
English
2
0
6
4.5K
Jack Ellis
Jack Ellis@JackEllis·
Why did nobody tell me about this function? I've been converting objects to arrays for years in order to use Arr::get(). This changes everything 🙈
Jack Ellis tweet media
English
21
29
264
22.2K
Dan Mason retweetledi
Luis Dalmolin
Luis Dalmolin@luisdalmolin·
Did you ever get annoyed by PHPStan complaining when retrieving config values and you must type a /** @var string */ comment? TIL from @danmasonmp that you can use type-hinted config methods to retrieve typed values from Laravel config.
Luis Dalmolin tweet media
English
7
25
162
19.6K
Dan Mason retweetledi
Kirschbaum Development
Kirschbaum Development@kirschbaum_dev·
Hey @LaraconUS! We're ready - are you? Stop by the booth for giveaways, dev chats, and a hint about future prizes 🤔
Kirschbaum Development tweet media
English
1
10
24
1.1K
Dan Mason retweetledi
Kirschbaum Development
Kirschbaum Development@kirschbaum_dev·
It's no secret that we're huge @filamentphp fans. In this new article, @derekgoetzit goes into full detail on why we love having Filament in our toolkit. Link below 👇
Kirschbaum Development tweet media
English
1
11
42
5.2K
Dan Mason retweetledi
Tobias_Petry.sql
Tobias_Petry.sql@tobias_petry·
The State Of Laravel 2024 survey has started! You can now participate to identify how the ecosystem changed over the past 12 months! Please RT for reach ❤️ stateoflaravel.com/?ref=2024
English
25
173
182
47.8K
Dan Mason
Dan Mason@danmasonmp·
@fideloper Yeah probably 😅 its the one i been using for my social images last few months.
English
1
0
1
43
Chris Fidao
Chris Fidao@fideloper·
@danmasonmp First I've heard of it, I assume there's like 984375834 of these apps 😅
English
1
0
0
50
Chris Fidao
Chris Fidao@fideloper·
"don't do this", "okay I didn't do this" (it does the thing) (jetstream has nothing to do with this, just a random website I chose)
Chris Fidao tweet media
English
4
0
7
2.8K
Dan Mason
Dan Mason@danmasonmp·
@JackEllis Yeah, recently moved from a MBP Intel 2019 which definitely had its issues with PHPStorm haha. Can't say i seen the issue you describe but likely also performance related. ST4 certainly is decent and i have used it occasionally. I am a big fan of the Laravel Idea plugin though 😅
English
0
0
0
99
Jack Ellis
Jack Ellis@JackEllis·
@danmasonmp But this is what's funny. I would have to disable everything to... make it like ST4. One other thing that bothered me was every time I changed a line, it would re-colour the whole page. And MBP M3 is a BEAST, I'm still on my MBA M1 ;)
English
1
0
0
155
Jack Ellis
Jack Ellis@JackEllis·
Alright, Jeffrey, I think you got me.
Jack Ellis tweet media
English
9
2
73
18.4K
Dan Mason
Dan Mason@danmasonmp·
@JackEllis For point 1 at least, I would bet phpstorm lets you disable anything that you found distracting. Performance is a common gripe, I will say on a MBP M3 not experiencing any issues but it def depends on your projects.
English
1
0
0
147
Jack Ellis
Jack Ellis@JackEllis·
Update: I lasted a month. Productivity took a big hit and PhpStorm doesn't work with my brain. 1) The linting, warnings, reformatting, errors, etc. that clean your code distracted me 2) Insanely slow compared to ST4 3) Vue auto imports means PhpStorm offers no JS benefits 🙈
English
5
0
5
2K