ContentTest.php 766 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace App\Console\Commands\ContentManage;
  3. use http\Exception\RuntimeException;
  4. use Illuminate\Console\Command;
  5. use Illuminate\Support\Facades\Redis;
  6. use Modules\Common\Errors\Errors;
  7. use Modules\Common\Exceptions\CommonBusinessException;
  8. class ContentTest extends Command
  9. {
  10. /**
  11. * The name and signature of the console command.
  12. *
  13. * @var string
  14. */
  15. protected $signature = 'app:contenttest';
  16. /**
  17. * The console command description.
  18. *
  19. * @var string
  20. */
  21. protected $description = 'Command description';
  22. /**
  23. * Execute the console command.
  24. */
  25. public function handle(): void
  26. {
  27. myLog('kkkkk')->info(date('Y-m-d H:i:s'));
  28. throw new RuntimeException('kljkjljkjkl');
  29. }
  30. }