2016-03-08 9 views
5

çalışmıyor ben ile yeni bir komut yapılmışlaravel özel komut

protected $signature = 'make:crawl'; 
protected $description = 'My crawling command'; 

sorun olduğunu ben çalıştırdığınızda:

php artisan make:crawl 

Bu çıktılar:

[Symfony\Component\Console\Exception\CommandNotFoundException] 
Command "make:crawl" is not defined. 

cevap

12

Ayrıca bu tanınabilmesi için App\Console\Kernel sınıfta komutunu kaydetmek gerekir:

protected $commands = [ 
    ... 
    \App\Console\Commands\CrawlData::class, 
]; 

Sen Registering Commands belgelerinde bu konuda daha fazla bilgi bulabilirsiniz.