Posted on Sep9th2020 by Matthias Noback If you want to write applications that are maintainable in the long run, you have to decouple from your framework, ORM, HTTP client, etc.

To accomplish framework decoupling you only have to follow these simple rules: Following rule 1 ensures that you'll never fetch a service ad hoc, e.g.

This is needed for framework decoupling because the global static facility that returns the service for you is by definition framework-specific.

Copyright © 2011-2020 - Matthias Noback - Powered by Sculpin and Bootswatch - Privacy policy
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners