TestDemo.php 658 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace App\Console\Commands;
  3. use App\Module\Farm\Services\CropService;
  4. use Illuminate\Console\Command;
  5. use Illuminate\Support\Facades\DB;
  6. use Illuminate\Support\Facades\Log;
  7. use UCore\Helper\Logger;
  8. class TestDemo extends Command
  9. {
  10. /**
  11. * The name and signature of the console command.
  12. *
  13. * @var string
  14. */
  15. protected $signature = 'test:demo';
  16. /**
  17. * The console command description.
  18. *
  19. * @var string
  20. */
  21. protected $description = '测试一些';
  22. /**
  23. * Execute the console command.
  24. */
  25. public function handle()
  26. {
  27. Logger::error('eee',[11]);
  28. return 1;
  29. }
  30. }