DiscoverNo CompromisesMagic methods are okay in the right context
Magic methods are okay in the right context

Magic methods are okay in the right context

Update: 2024-05-28
Share

Description

"Magic" methods and properties show up several places in Laravel, as well as third-party packages. They can make certain things easier and less verbose, but there is a trade off. In this episode, we discuss a few different contexts where we like and avoid magic accessors.

We'd really appreciate it if you share the show with other Laravel devs.

This episode is sponsored by Mailtrap, an Email Delivery Platform that developers love. Try for Free at MAILTRAP.IO

Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

Magic methods are okay in the right context

Magic methods are okay in the right context

Joel Clermont and Aaron Saray