SyncUserVisitMenuLogsCacheTask.php 856 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace App\Console\Commands;
  3. use App\Services\LogService;
  4. use App\Services\CheckActiveMenuService;
  5. use App\UserVisitMenuLog;
  6. use Illuminate\Console\Command;
  7. use Illuminate\Support\Facades\Redis;
  8. class SyncUserVisitMenuLogsCacheTask extends Command
  9. {
  10. /**
  11. * The name and signature of the console command.
  12. *
  13. * @var string
  14. */
  15. protected $signature = 'syncUserVisitMenuLogsCacheTask';
  16. /**
  17. * The console command description.
  18. *
  19. * @var string
  20. */
  21. protected $description = 'Command description';
  22. /**
  23. * Create a new command instance.
  24. *
  25. * @return void
  26. */
  27. public function __construct()
  28. {
  29. parent::__construct();
  30. }
  31. /**
  32. * Execute the console command.
  33. *
  34. */
  35. public function handle()
  36. {
  37. CheckActiveMenuService::sync();
  38. }
  39. }