A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

25 linhas
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. }