- Edited
Facade classes work by returning just a key, e.g. payment/paypal
, which app()
will use to look up for a match in its registration list and return an instance of the class. Facade registration usually occurs inside the register()
class of ServiceProviders
. An example would be:
$this->app->singleton('payment/paypal', function ($app) {
return new PayPal();
});
This is currently a hit and miss, referring to screenshots, PHPTools was able to identify the source of PayPal::
but not License::