Support Facades

Support Facades

Introduction

Facades provide a "static" interface to classes that are available in the application's service container. Nova ships with many facades, and you have probably been using them without even knowing it! Nova "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.

Facade Class Reference

Below you will find every facade and its underlying class. This is a useful tool for quickly digging into the API documentation for a given facade root. The service container binding key is also included where applicable.

FacadeClassService Container Binding
Auth AuthGuard Auth
Cookie CookieCookieJar Cookie
Crypt CryptEncrypter Crypt
Database DatabaseConnection DB
Event EventsDispatcher Event
Hash SupportFacadesHash Hash
Input SupportFacadesInput Input
Language CoreLanguage Language
Mailer MailMailer Mailer
Paginator PaginationFactory Paginator
Password AuthRemindersPasswordBroker Password
Redirect RoutingRedirector Redirect
Request HttpRequest Request
Response HttpResponse Response
Session SessionStore Session
Validator ValidationFactory Validator
原文地址:https://www.cnblogs.com/chunguang/p/5643026.html