A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
505B

  1. <?php
  2. namespace App\Console\Commands;
  3. use Exception;
  4. use Illuminate\Console\Command;
  5. use App\Knockout\Thread;
  6. class Popular extends Command {
  7. protected $name = 'knockout:popular';
  8. protected $description = 'Fetch popular thread list';
  9. public function handle()
  10. {
  11. try {
  12. Thread::updatePopular();
  13. echo '[ OK ] Popular threads cached' . PHP_EOL;
  14. } catch (Exception $e) {
  15. echo '[FAIL] Popular threads cached' . PHP_EOL;
  16. }
  17. }
  18. }