::class是啥意思?
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
搜半天不知道搜啥关键词。。
应该是user这个类下面的一个静态属性
App\User::class 返回类名 “App\User”
App\User::class 返回类名 “App\User”
use Some\Deeply\Nested\Namespace\FooBar; // does not work, because this will try to use the global `FooBar` class $reflection = new ReflectionClass('FooBar'); echo FooBar::class;