嗨,我不知道为什么我们在laravel 5中使用::class
config/app.php
提供商数组,如IlluminateAuthAuthServiceProvider::class
, ::class
的目的是什么,以及我们可以以与::class
相同的方式使用的其他东西。
它是类作为字符串的完全限定名(包括名称空间)。PHP: The Basics - Manual