I'm confused by the Facades offered by Laravel.
The Laravel documentation states:
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.
Please help me to understand:
- Why we really use
use Illuminate\Support\Facades
? - How to create custom Facades ?