Laravel 的一个语法问题
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
//
\App\Console\Commands\ESInit::class
];
/**
如上所示 其中php
\App\Console\Commands\ESInit::class的::调用的是静态方法,那么这里的class什么意思呢
关于 LearnKu
看爱好 喜欢
'App\Console\Commands\ESInit'就用他我比较喜欢
\App\Console\Commands\ESInit::class