Laravel: Facades 2계명

  1. When using facades, pay special attention to the size of your class so that its scope of responsibility stays narrow.

  2. When building a third-party package that interacts with Laravel, it's better to inject Laravel contracts instead of using facades. Since packages are built outside of Laravel itself, you will not have access to Laravel's facade testing helpers.

출처: Laravel Facades

Image: CC by waitingfortheword@flickr.com