News for hackers. Stuff that matters.
Re:PHP in 2019 by dabernathy89 on Wednesday May 15, 2019 @02:22PM (#19922225)
> it is built around static methods instead of proper OOP

The fake case against Laravel that never dies . The truth is found in the docs: https://laravel.com/docs/5.8/facades

> Facades provide a "static" interface to classes that are available in the application's service container. Laravel ships with many facades which provide access to almost all of Laravel's features. Laravel facades serve as "static proxies" to underlying classes in the service container, providing the benefit of a terse, expressive syntax while maintaining more testability and flexibility than traditional static methods.

Re:PHP in 2019 by the_duke on Wednesday May 15, 2019 @02:52PM (#19922520)
What isn't fake is that Laravel uses magic methods everywhere, especially in the ORM layer.

There are way too many magic things happening under the hood for my taste.

Re:PHP in 2019 by munk-a on Wednesday May 15, 2019 @04:09PM (#19923213)
Magic methods in PHP are very commonly used to help reduce code verbosity - having come from working mostly in C++ I appreciate being able to express things succinctly.
Re:PHP in 2019 by malinens on Thursday May 16, 2019 @08:58AM (#19928526)
Much more important for code, especially library code is readability
Re:PHP in 2019 by mjlangiii on Wednesday May 15, 2019 @09:05PM (#19925260)
Laravel is moving away from magic methods to using facades, FWIW.