How to use PHP feature trait to realize simple Laravel Facade
Today, I would like to share with you how to use the PHP feature trait to achieve simple Laravel Facade related knowledge points, detailed content, clear logic, I believe that most people still know too much about this knowledge, so share this article for your reference, I hope you can get something after reading this article, let's take a look at it.
Brief introduction
Facade can effectively help me make the method static. Most of Laravel's expansion packs use Facade.
The following simple Facade mainly uses the characteristics of PHP trait, magic method _ _ callStatic, reflection class ReflectionClass.
Working with scen
Most backend systems will have operations like this: