MakeBlogUvCommand.php 722 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace App\Console\Commands;
  3. use App\Web\Facades\BlogFacade;
  4. use App\Web\Facades\HelpFacade;
  5. use Illuminate\Console\Command;
  6. use Illuminate\Support\Facades\DB;
  7. class MakeBlogUvCommand extends Command
  8. {
  9. /**
  10. * The name and signature of the console command.
  11. *
  12. * @var string
  13. */
  14. protected $signature = 'make:blog_uv';
  15. /**
  16. * The console command description.
  17. *
  18. * @var string
  19. */
  20. protected $description = '自动增加文章虚拟阅读量';
  21. /**
  22. * Execute the console command.
  23. *
  24. * @return mixed
  25. */
  26. public function handle()
  27. {
  28. BlogFacade::blogUvFactory();
  29. HelpFacade::helpUvFactory();
  30. echo 'ok ';
  31. }
  32. }