I read about Facade Pattern
The facade pattern (also spelled façade) is a software design pattern commonly used with object-oriented programming. The name is an analogy to an architectural façade. A facade is an object that provides a simplified interface to a larger body of code, such as a class library.
But in Laravel all the Facade Classes methods are accessed via the ::
(Scope Resolution Operator) even though the methods are not static at all.
How is this possible? Why PHP is not telling that the method is not static.
for example Auth::user()
eventhough the user()
method is not static how is is accessible, somewhere the class should be newed up or am I missing something?