DEV Community

Cover image for POV: What Is The Weirdest Thing You Know About The Framework LARAVEL

POV: What Is The Weirdest Thing You Know About The Framework LARAVEL

Emmanuel C. Okolie on March 15, 2024

As we all know, Laravel is one of the most popular PHP frameworks but here’s what I feel, I feel it has lots of Weird abilities as a framework arou...
Collapse
 
xwero profile image
david duymelinck • Edited

The updates follow a schedule, blog.laravel.com/laravel-release-s.... It is not uncommon, see symfony.com/releases and drupal.org/about/core/policies/cor...
The idea is to keep up with PHP and have a more predictable time frame to upgrade.
If you are conservative you can only update when LTS versions are released. You can update to the newest version if you want the newest changes, that is up to you to decide.

The things I find weird are:

  • the use of functions like app, back, config, ... It are hidden dependencies, which make it harder to debug code. The better way of doing this is to add the dependency to the class or class method.
  • using facades instead of interfaces to do dependency binding. it is not a bad practice, but it requires an extra step to map the actual class. And it makes it harder to let the IDEs do code completion.
Collapse
 
emmykolic profile image
Emmanuel C. Okolie

Exactly 💯 I've seen your view and they're actually weird. Thank you 🙏 sir