Why can static:: be written in the laravel framework? is there a class called static and then access a static method make?
but static is a keyword and cannot be used as a class name.
is located in vendor/laravel/framework/src/Illuminate/Support/Facades/Auth.php
class Auth extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return "auth";
}
/**
* Register the typical authentication routes for an application.
*
* @return void
*/
public static function routes()
{
static::$app->make("router")->auth();
}
}